Lines Matching refs:bl
30 struct backlight_device *bl; member
102 static int as3711_bl_update_status(struct backlight_device *bl) in as3711_bl_update_status() argument
104 struct as3711_bl_data *data = bl_get_data(bl); in as3711_bl_update_status()
110 brightness = backlight_get_brightness(bl); in as3711_bl_update_status()
161 static int as3711_bl_get_brightness(struct backlight_device *bl) in as3711_bl_get_brightness() argument
163 struct as3711_bl_data *data = bl_get_data(bl); in as3711_bl_get_brightness()
226 struct backlight_device *bl; in as3711_bl_register() local
231 bl = devm_backlight_device_register(&pdev->dev, in as3711_bl_register()
236 if (IS_ERR(bl)) { in as3711_bl_register()
238 return PTR_ERR(bl); in as3711_bl_register()
241 bl->props.brightness = props.max_brightness; in as3711_bl_register()
243 backlight_update_status(bl); in as3711_bl_register()
245 su->bl = bl; in as3711_bl_register()
253 struct device_node *bl, *fb; in as3711_backlight_parse_dt() local
256 bl = of_get_child_by_name(dev->parent->of_node, "backlight"); in as3711_backlight_parse_dt()
257 if (!bl) { in as3711_backlight_parse_dt()
262 fb = of_parse_phandle(bl, "su1-dev", 0); in as3711_backlight_parse_dt()
268 ret = of_property_read_u32(bl, "su1-max-uA", &pdata->su1_max_uA); in as3711_backlight_parse_dt()
275 fb = of_parse_phandle(bl, "su2-dev", 0); in as3711_backlight_parse_dt()
283 ret = of_property_read_u32(bl, "su2-max-uA", &pdata->su2_max_uA); in as3711_backlight_parse_dt()
289 if (of_property_read_bool(bl, "su2-feedback-voltage")) { in as3711_backlight_parse_dt()
293 if (of_property_read_bool(bl, "su2-feedback-curr1")) { in as3711_backlight_parse_dt()
297 if (of_property_read_bool(bl, "su2-feedback-curr2")) { in as3711_backlight_parse_dt()
301 if (of_property_read_bool(bl, "su2-feedback-curr3")) { in as3711_backlight_parse_dt()
305 if (of_property_read_bool(bl, "su2-feedback-curr-auto")) { in as3711_backlight_parse_dt()
315 if (of_property_read_bool(bl, "su2-fbprot-lx-sd4")) { in as3711_backlight_parse_dt()
319 if (of_property_read_bool(bl, "su2-fbprot-gpio2")) { in as3711_backlight_parse_dt()
323 if (of_property_read_bool(bl, "su2-fbprot-gpio3")) { in as3711_backlight_parse_dt()
327 if (of_property_read_bool(bl, "su2-fbprot-gpio4")) { in as3711_backlight_parse_dt()
337 if (of_property_read_bool(bl, "su2-auto-curr1")) { in as3711_backlight_parse_dt()
341 if (of_property_read_bool(bl, "su2-auto-curr2")) { in as3711_backlight_parse_dt()
345 if (of_property_read_bool(bl, "su2-auto-curr3")) { in as3711_backlight_parse_dt()
360 of_node_put(bl); in as3711_backlight_parse_dt()
365 of_node_put(bl); in as3711_backlight_parse_dt()