@@ -261,10 +261,10 @@ static int adp8860_led_probe(struct i2c_client *client)
led_dat->cdev.name = cur_led->name;
led_dat->cdev.default_trigger = cur_led->default_trigger;
led_dat->cdev.brightness_set = adp8860_led_set;
- led_dat->cdev.brightness = LED_OFF;
+ led_dat->cdev.brightness = 0;
led_dat->flags = cur_led->flags >> FLAG_OFFT_SHIFT;
led_dat->client = client;
- led_dat->new_brightness = LED_OFF;
+ led_dat->new_brightness = 0;
INIT_WORK(&led_dat->work, adp8860_led_work);
ret = led_classdev_register(&client->dev, &led_dat->cdev);
@@ -287,10 +287,10 @@ static int adp8870_led_probe(struct i2c_client *client)
led_dat->cdev.name = cur_led->name;
led_dat->cdev.default_trigger = cur_led->default_trigger;
led_dat->cdev.brightness_set = adp8870_led_set;
- led_dat->cdev.brightness = LED_OFF;
+ led_dat->cdev.brightness = 0;
led_dat->flags = cur_led->flags >> FLAG_OFFT_SHIFT;
led_dat->client = client;
- led_dat->new_brightness = LED_OFF;
+ led_dat->new_brightness = 0;
INIT_WORK(&led_dat->work, adp8870_led_work);
ret = led_classdev_register(&client->dev, &led_dat->cdev);
@@ -46,7 +46,7 @@ static void led_bl_power_off(struct led_bl_data *priv)
return;
for (i = 0; i < priv->nb_leds; i++)
- led_set_brightness(priv->leds[i], LED_OFF);
+ led_set_brightness(priv->leds[i], 0);
priv->enabled = false;
}