Searched refs:wleds (Results 1 – 1 of 1) sorted by relevance
45 static int da9052_adjust_wled_brightness(struct da9052_bl *wleds) in da9052_adjust_wled_brightness() argument53 if (wleds->state == DA9052_WLEDS_OFF) { in da9052_adjust_wled_brightness()58 ret = da9052_reg_write(wleds->da9052, DA9052_BOOST_REG, boost_en); in da9052_adjust_wled_brightness()62 ret = da9052_reg_write(wleds->da9052, DA9052_LED_CONT_REG, i_sink); in da9052_adjust_wled_brightness()66 ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], 0x0); in da9052_adjust_wled_brightness()72 if (wleds->brightness) { in da9052_adjust_wled_brightness()73 ret = da9052_reg_write(wleds->da9052, wled_bank[wleds->led_reg], in da9052_adjust_wled_brightness()74 wleds->brightness); in da9052_adjust_wled_brightness()85 struct da9052_bl *wleds = bl_get_data(bl); in da9052_backlight_update_status() local87 wleds->brightness = brightness; in da9052_backlight_update_status()[all …]