forked from luck/tmp_suning_uos_patched
backlight: Remove trivial get_brightness implementations
Since backlight core returns props.brightness in case get_brightness is not implemented trivial implementations are not needed anymore. Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
a497c3ba1d
commit
a5d8e2e73c
|
@ -110,13 +110,7 @@ static int pmu_backlight_update_status(struct backlight_device *bd)
|
|||
}
|
||||
|
||||
|
||||
static int pmu_backlight_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops pmu_backlight_data = {
|
||||
.get_brightness = pmu_backlight_get_brightness,
|
||||
.update_status = pmu_backlight_update_status,
|
||||
|
||||
};
|
||||
|
|
|
@ -46,13 +46,7 @@ static int samsungq10_bl_set_intensity(struct backlight_device *bd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int samsungq10_bl_get_intensity(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops samsungq10_bl_ops = {
|
||||
.get_brightness = samsungq10_bl_get_intensity,
|
||||
.update_status = samsungq10_bl_set_intensity,
|
||||
};
|
||||
|
||||
|
|
|
@ -67,11 +67,6 @@ static inline int aat2870_bl_disable(struct aat2870_bl_driver_data *aat2870_bl)
|
|||
return aat2870->write(aat2870, AAT2870_BL_CH_EN, 0x0);
|
||||
}
|
||||
|
||||
static int aat2870_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static int aat2870_bl_update_status(struct backlight_device *bd)
|
||||
{
|
||||
struct aat2870_bl_driver_data *aat2870_bl = bl_get_data(bd);
|
||||
|
@ -120,7 +115,6 @@ static int aat2870_bl_check_fb(struct backlight_device *bd, struct fb_info *fi)
|
|||
|
||||
static const struct backlight_ops aat2870_bl_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.get_brightness = aat2870_bl_get_brightness,
|
||||
.update_status = aat2870_bl_update_status,
|
||||
.check_fb = aat2870_bl_check_fb,
|
||||
};
|
||||
|
|
|
@ -410,11 +410,6 @@ static int ams369fg06_set_power(struct lcd_device *ld, int power)
|
|||
return ams369fg06_power(lcd, power);
|
||||
}
|
||||
|
||||
static int ams369fg06_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static int ams369fg06_set_brightness(struct backlight_device *bd)
|
||||
{
|
||||
int ret = 0;
|
||||
|
@ -443,7 +438,6 @@ static struct lcd_ops ams369fg06_lcd_ops = {
|
|||
};
|
||||
|
||||
static const struct backlight_ops ams369fg06_backlight_ops = {
|
||||
.get_brightness = ams369fg06_get_brightness,
|
||||
.update_status = ams369fg06_set_brightness,
|
||||
};
|
||||
|
||||
|
|
|
@ -105,11 +105,6 @@ static int bd6107_backlight_update_status(struct backlight_device *backlight)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int bd6107_backlight_get_brightness(struct backlight_device *backlight)
|
||||
{
|
||||
return backlight->props.brightness;
|
||||
}
|
||||
|
||||
static int bd6107_backlight_check_fb(struct backlight_device *backlight,
|
||||
struct fb_info *info)
|
||||
{
|
||||
|
@ -121,7 +116,6 @@ static int bd6107_backlight_check_fb(struct backlight_device *backlight,
|
|||
static const struct backlight_ops bd6107_backlight_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = bd6107_backlight_update_status,
|
||||
.get_brightness = bd6107_backlight_get_brightness,
|
||||
.check_fb = bd6107_backlight_check_fb,
|
||||
};
|
||||
|
||||
|
|
|
@ -44,11 +44,6 @@ static int gpio_backlight_update_status(struct backlight_device *bl)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int gpio_backlight_get_brightness(struct backlight_device *bl)
|
||||
{
|
||||
return bl->props.brightness;
|
||||
}
|
||||
|
||||
static int gpio_backlight_check_fb(struct backlight_device *bl,
|
||||
struct fb_info *info)
|
||||
{
|
||||
|
@ -60,7 +55,6 @@ static int gpio_backlight_check_fb(struct backlight_device *bl,
|
|||
static const struct backlight_ops gpio_backlight_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = gpio_backlight_update_status,
|
||||
.get_brightness = gpio_backlight_get_brightness,
|
||||
.check_fb = gpio_backlight_check_fb,
|
||||
};
|
||||
|
||||
|
|
|
@ -642,11 +642,6 @@ static int ld9040_get_power(struct lcd_device *ld)
|
|||
return lcd->power;
|
||||
}
|
||||
|
||||
static int ld9040_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static int ld9040_set_brightness(struct backlight_device *bd)
|
||||
{
|
||||
int ret = 0, brightness = bd->props.brightness;
|
||||
|
@ -674,7 +669,6 @@ static struct lcd_ops ld9040_lcd_ops = {
|
|||
};
|
||||
|
||||
static const struct backlight_ops ld9040_backlight_ops = {
|
||||
.get_brightness = ld9040_get_brightness,
|
||||
.update_status = ld9040_set_brightness,
|
||||
};
|
||||
|
||||
|
|
|
@ -274,15 +274,9 @@ static int lp855x_bl_update_status(struct backlight_device *bl)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lp855x_bl_get_brightness(struct backlight_device *bl)
|
||||
{
|
||||
return bl->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops lp855x_bl_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = lp855x_bl_update_status,
|
||||
.get_brightness = lp855x_bl_get_brightness,
|
||||
};
|
||||
|
||||
static int lp855x_backlight_register(struct lp855x *lp)
|
||||
|
|
|
@ -176,15 +176,9 @@ static int lp8788_bl_update_status(struct backlight_device *bl_dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lp8788_bl_get_brightness(struct backlight_device *bl_dev)
|
||||
{
|
||||
return bl_dev->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops lp8788_bl_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = lp8788_bl_update_status,
|
||||
.get_brightness = lp8788_bl_get_brightness,
|
||||
};
|
||||
|
||||
static int lp8788_backlight_register(struct lp8788_bl *bl)
|
||||
|
|
|
@ -70,11 +70,6 @@ static int lv5207lp_backlight_update_status(struct backlight_device *backlight)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int lv5207lp_backlight_get_brightness(struct backlight_device *backlight)
|
||||
{
|
||||
return backlight->props.brightness;
|
||||
}
|
||||
|
||||
static int lv5207lp_backlight_check_fb(struct backlight_device *backlight,
|
||||
struct fb_info *info)
|
||||
{
|
||||
|
@ -86,7 +81,6 @@ static int lv5207lp_backlight_check_fb(struct backlight_device *backlight,
|
|||
static const struct backlight_ops lv5207lp_backlight_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = lv5207lp_backlight_update_status,
|
||||
.get_brightness = lv5207lp_backlight_get_brightness,
|
||||
.check_fb = lv5207lp_backlight_check_fb,
|
||||
};
|
||||
|
||||
|
|
|
@ -100,15 +100,9 @@ static int pandora_backlight_update_status(struct backlight_device *bl)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int pandora_backlight_get_brightness(struct backlight_device *bl)
|
||||
{
|
||||
return bl->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops pandora_backlight_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = pandora_backlight_update_status,
|
||||
.get_brightness = pandora_backlight_get_brightness,
|
||||
};
|
||||
|
||||
static int pandora_backlight_probe(struct platform_device *pdev)
|
||||
|
|
|
@ -115,11 +115,6 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int pwm_backlight_get_brightness(struct backlight_device *bl)
|
||||
{
|
||||
return bl->props.brightness;
|
||||
}
|
||||
|
||||
static int pwm_backlight_check_fb(struct backlight_device *bl,
|
||||
struct fb_info *info)
|
||||
{
|
||||
|
@ -130,7 +125,6 @@ static int pwm_backlight_check_fb(struct backlight_device *bl,
|
|||
|
||||
static const struct backlight_ops pwm_backlight_ops = {
|
||||
.update_status = pwm_backlight_update_status,
|
||||
.get_brightness = pwm_backlight_get_brightness,
|
||||
.check_fb = pwm_backlight_check_fb,
|
||||
};
|
||||
|
||||
|
|
|
@ -597,11 +597,6 @@ static int s6e63m0_get_power(struct lcd_device *ld)
|
|||
return lcd->power;
|
||||
}
|
||||
|
||||
static int s6e63m0_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static int s6e63m0_set_brightness(struct backlight_device *bd)
|
||||
{
|
||||
int ret = 0, brightness = bd->props.brightness;
|
||||
|
@ -629,7 +624,6 @@ static struct lcd_ops s6e63m0_lcd_ops = {
|
|||
};
|
||||
|
||||
static const struct backlight_ops s6e63m0_backlight_ops = {
|
||||
.get_brightness = s6e63m0_get_brightness,
|
||||
.update_status = s6e63m0_set_brightness,
|
||||
};
|
||||
|
||||
|
|
|
@ -109,15 +109,9 @@ static int tps65217_bl_update_status(struct backlight_device *bl)
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int tps65217_bl_get_brightness(struct backlight_device *bl)
|
||||
{
|
||||
return bl->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops tps65217_bl_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = tps65217_bl_update_status,
|
||||
.get_brightness = tps65217_bl_get_brightness
|
||||
};
|
||||
|
||||
static int tps65217_bl_hw_init(struct tps65217_bl *tps65217_bl,
|
||||
|
|
|
@ -1802,13 +1802,7 @@ static int aty128_bl_update_status(struct backlight_device *bd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int aty128_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops aty128_bl_data = {
|
||||
.get_brightness = aty128_bl_get_brightness,
|
||||
.update_status = aty128_bl_update_status,
|
||||
};
|
||||
|
||||
|
|
|
@ -2211,13 +2211,7 @@ static int aty_bl_update_status(struct backlight_device *bd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int aty_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops aty_bl_data = {
|
||||
.get_brightness = aty_bl_get_brightness,
|
||||
.update_status = aty_bl_update_status,
|
||||
};
|
||||
|
||||
|
|
|
@ -123,13 +123,7 @@ static int radeon_bl_update_status(struct backlight_device *bd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int radeon_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops radeon_bl_data = {
|
||||
.get_brightness = radeon_bl_get_brightness,
|
||||
.update_status = radeon_bl_update_status,
|
||||
};
|
||||
|
||||
|
|
|
@ -704,11 +704,6 @@ static int s6e8ax0_get_power(struct lcd_device *ld)
|
|||
return lcd->power;
|
||||
}
|
||||
|
||||
static int s6e8ax0_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static int s6e8ax0_set_brightness(struct backlight_device *bd)
|
||||
{
|
||||
int ret = 0, brightness = bd->props.brightness;
|
||||
|
@ -736,7 +731,6 @@ static struct lcd_ops s6e8ax0_lcd_ops = {
|
|||
};
|
||||
|
||||
static const struct backlight_ops s6e8ax0_backlight_ops = {
|
||||
.get_brightness = s6e8ax0_get_brightness,
|
||||
.update_status = s6e8ax0_set_brightness,
|
||||
};
|
||||
|
||||
|
|
|
@ -82,13 +82,7 @@ static int nvidia_bl_update_status(struct backlight_device *bd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int nvidia_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops nvidia_bl_ops = {
|
||||
.get_brightness = nvidia_bl_get_brightness,
|
||||
.update_status = nvidia_bl_update_status,
|
||||
};
|
||||
|
||||
|
|
|
@ -326,13 +326,7 @@ static int riva_bl_update_status(struct backlight_device *bd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int riva_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops riva_bl_ops = {
|
||||
.get_brightness = riva_bl_get_brightness,
|
||||
.update_status = riva_bl_update_status,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user