File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -241,19 +241,17 @@ static int lp855x_bl_update_status(struct backlight_device *bl)
241
241
{
242
242
struct lp855x * lp = bl_get_data (bl );
243
243
int brightness = bl -> props .brightness ;
244
- int ret ;
245
244
246
245
if (bl -> props .state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK ))
247
246
brightness = 0 ;
248
247
249
248
if (lp -> mode == PWM_BASED )
250
- ret = lp855x_pwm_ctrl (lp , brightness ,
249
+ return lp855x_pwm_ctrl (lp , brightness ,
251
250
bl -> props .max_brightness );
252
251
else if (lp -> mode == REGISTER_BASED )
253
- ret = lp855x_write_byte (lp , lp -> cfg -> reg_brightness ,
252
+ return lp855x_write_byte (lp , lp -> cfg -> reg_brightness ,
254
253
(u8 )brightness );
255
-
256
- return ret ;
254
+ return - EINVAL ;
257
255
}
258
256
259
257
static const struct backlight_ops lp855x_bl_ops = {
You can’t perform that action at this time.
0 commit comments