Lines Matching refs:led_data
225 const struct is31fl32xx_led_data *led_data = in is31fl32xx_brightness_set() local
227 const struct is31fl32xx_chipdef *cdef = led_data->priv->cdef; in is31fl32xx_brightness_set()
235 pwm_register_offset = cdef->channels - led_data->channel; in is31fl32xx_brightness_set()
237 pwm_register_offset = led_data->channel - 1; in is31fl32xx_brightness_set()
239 ret = is31fl32xx_write(led_data->priv, in is31fl32xx_brightness_set()
245 return is31fl32xx_write(led_data->priv, cdef->pwm_update_reg, 0); in is31fl32xx_brightness_set()
329 struct is31fl32xx_led_data *led_data) in is31fl32xx_parse_child_dt() argument
331 struct led_classdev *cdev = &led_data->cdev; in is31fl32xx_parse_child_dt()
336 if (ret || reg < 1 || reg > led_data->priv->cdef->channels) { in is31fl32xx_parse_child_dt()
342 led_data->channel = reg; in is31fl32xx_parse_child_dt()
371 struct is31fl32xx_led_data *led_data = in is31fl32xx_parse_dt() local
375 led_data->priv = priv; in is31fl32xx_parse_dt()
377 ret = is31fl32xx_parse_child_dt(dev, child, led_data); in is31fl32xx_parse_dt()
383 led_data->channel); in is31fl32xx_parse_dt()
394 ret = devm_led_classdev_register_ext(dev, &led_data->cdev, in is31fl32xx_parse_dt()