pdata = led->pdata;
switch (brightness) {
+ case LED_FULL:
+ gpio_direction_output(pdata->gpio, pdata->value_on);
+ break;
case LED_OFF:
gpio_direction_output(pdata->gpio, pdata->value_off);
break;
default:
- gpio_direction_output(pdata->gpio, pdata->value_on);
+ gpio_direction_output(pdata->gpio, brightness);
break;
}
}