diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-08-27 21:45:00 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-28 15:10:16 +0200 |
commit | 964a1c4e0e22cf2da7c35e7d57e61fcd7ba8ee21 (patch) | |
tree | 3a3633cfd0693e1c9e64517b0ea1e6d22ba6223c /drivers/video/backlight | |
parent | backlight: Remove .owner field for drivers using module_platform_driver (diff) | |
download | linux-964a1c4e0e22cf2da7c35e7d57e61fcd7ba8ee21.tar.xz linux-964a1c4e0e22cf2da7c35e7d57e61fcd7ba8ee21.zip |
backlight: generic_bl: Remove unused function
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>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/generic_bl.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/video/backlight/generic_bl.c b/drivers/video/backlight/generic_bl.c index 5d8d65200db7..67dfb939a514 100644 --- a/drivers/video/backlight/generic_bl.c +++ b/drivers/video/backlight/generic_bl.c @@ -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, |