Commit 2bf82b5a authored by Lars Poeschel's avatar Lars Poeschel Committed by Miguel Ojeda

auxdisplay: make charlcd_backlight visible to hd44780_common

hd44780_common wants to use the charlcd_backlight function, so make it
visible.
Reviewed-by: default avatarWilly Tarreau <w@1wt.eu>
Signed-off-by: default avatarLars Poeschel <poeschel@lemonage.de>
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 45421ffe
...@@ -91,7 +91,7 @@ static void long_sleep(int ms) ...@@ -91,7 +91,7 @@ static void long_sleep(int ms)
} }
/* turn the backlight on or off */ /* turn the backlight on or off */
static void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on) void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on)
{ {
struct charlcd_priv *priv = charlcd_to_priv(lcd); struct charlcd_priv *priv = charlcd_to_priv(lcd);
...@@ -103,6 +103,7 @@ static void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on) ...@@ -103,6 +103,7 @@ static void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on)
lcd->ops->backlight(lcd, on); lcd->ops->backlight(lcd, on);
mutex_unlock(&priv->bl_tempo_lock); mutex_unlock(&priv->bl_tempo_lock);
} }
EXPORT_SYMBOL_GPL(charlcd_backlight);
static void charlcd_bl_off(struct work_struct *work) static void charlcd_bl_off(struct work_struct *work)
{ {
......
...@@ -56,6 +56,7 @@ struct charlcd_ops { ...@@ -56,6 +56,7 @@ struct charlcd_ops {
int (*clear_display)(struct charlcd *lcd); int (*clear_display)(struct charlcd *lcd);
}; };
void charlcd_backlight(struct charlcd *lcd, enum charlcd_onoff on);
struct charlcd *charlcd_alloc(void); struct charlcd *charlcd_alloc(void);
void charlcd_free(struct charlcd *lcd); void charlcd_free(struct charlcd *lcd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment