diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-03-12 15:44:30 +0100 |
---|---|---|
committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2019-03-17 08:48:16 +0100 |
commit | 8e44fc85060ec997e9c6f3c49a04274db6621d26 (patch) | |
tree | 4cda99d0e9659835dd87da3280730cc48aa1dfbb /drivers/auxdisplay | |
parent | auxdisplay: charlcd: Move to_priv() to charlcd namespace (diff) | |
download | linux-8e44fc85060ec997e9c6f3c49a04274db6621d26.tar.xz linux-8e44fc85060ec997e9c6f3c49a04274db6621d26.zip |
auxdisplay: charlcd: Introduce charlcd_free() helper
The charlcd_free() is a counterpart to charlcd_alloc()
and should be called symmetrically on tear down.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r-- | drivers/auxdisplay/charlcd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 407acd22efa8..a351a9400054 100644 --- a/drivers/auxdisplay/charlcd.c +++ b/drivers/auxdisplay/charlcd.c @@ -818,6 +818,12 @@ struct charlcd *charlcd_alloc(unsigned int drvdata_size) } EXPORT_SYMBOL_GPL(charlcd_alloc); +void charlcd_free(struct charlcd *lcd) +{ + kfree(charlcd_to_priv(lcd)); +} +EXPORT_SYMBOL_GPL(charlcd_free); + static int panel_notify_sys(struct notifier_block *this, unsigned long code, void *unused) { |