Lines Matching refs:bl

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