Commit d5c7c273 authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

auxdisplay: hd44780: Introduce hd44780_common_free()



Introduce hd44780_common_free() for symmetrical operation
to hd44780_common_alloc(). It will allow to modify both
in the future without touching the users.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 68917dfc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -366,5 +366,11 @@ struct hd44780_common *hd44780_common_alloc(void)
}
EXPORT_SYMBOL_GPL(hd44780_common_alloc);

void hd44780_common_free(struct hd44780_common *hd)
{
	kfree(hd);
}
EXPORT_SYMBOL_GPL(hd44780_common_free);

MODULE_DESCRIPTION("Common functions for HD44780 (and compatibles) LCD displays");
MODULE_LICENSE("GPL");
+2 −0
Original line number Diff line number Diff line
@@ -30,4 +30,6 @@ int hd44780_common_blink(struct charlcd *lcd, enum charlcd_onoff on);
int hd44780_common_fontsize(struct charlcd *lcd, enum charlcd_fontsize size);
int hd44780_common_lines(struct charlcd *lcd, enum charlcd_lines lines);
int hd44780_common_redefine_char(struct charlcd *lcd, char *esc);

struct hd44780_common *hd44780_common_alloc(void);
void hd44780_common_free(struct hd44780_common *hd);