]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
backlight: generic_bl: Remove unused function
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 27 Aug 2014 19:45:00 +0000 (16:45 -0300)
committerLee Jones <lee.jones@linaro.org>
Thu, 28 Aug 2014 13:10:16 +0000 (14:10 +0100)
genericbl_limit_intensity() is exported, but it is never
called anywhere else.

Fix the following sparse warning:

drivers/video/backlight/generic_bl.c:59:6:
  warning: symbol 'genericbl_limit_intensity' was not declared.
  Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/generic_bl.c

index 5d8d65200db77b739154c44e394138bc8b332641..67dfb939a51428f1fb1a54381bfde0b56d53fe8e 100644 (file)
@@ -52,24 +52,6 @@ static int genericbl_get_intensity(struct backlight_device *bd)
        return genericbl_intensity;
 }
 
-/*
- * Called when the battery is low to limit the backlight intensity.
- * If limit==0 clear any limit, otherwise limit the intensity
- */
-void genericbl_limit_intensity(int limit)
-{
-       struct backlight_device *bd = generic_backlight_device;
-
-       mutex_lock(&bd->ops_lock);
-       if (limit)
-               bd->props.state |= GENERICBL_BATTLOW;
-       else
-               bd->props.state &= ~GENERICBL_BATTLOW;
-       backlight_update_status(generic_backlight_device);
-       mutex_unlock(&bd->ops_lock);
-}
-EXPORT_SYMBOL(genericbl_limit_intensity);
-
 static const struct backlight_ops genericbl_ops = {
        .options = BL_CORE_SUSPENDRESUME,
        .get_brightness = genericbl_get_intensity,