Lines Matching refs:gbl
25 struct gpio_backlight *gbl = bl_get_data(bl); in gpio_backlight_update_status() local
27 gpiod_set_value_cansleep(gbl->gpiod, backlight_get_brightness(bl)); in gpio_backlight_update_status()
35 struct gpio_backlight *gbl = bl_get_data(bl); in gpio_backlight_controls_device() local
37 return !gbl->dev || gbl->dev == display_dev; in gpio_backlight_controls_device()
53 struct gpio_backlight *gbl; in gpio_backlight_probe() local
56 gbl = devm_kzalloc(dev, sizeof(*gbl), GFP_KERNEL); in gpio_backlight_probe()
57 if (gbl == NULL) in gpio_backlight_probe()
61 gbl->dev = pdata->dev; in gpio_backlight_probe()
65 gbl->gpiod = devm_gpiod_get(dev, NULL, GPIOD_ASIS); in gpio_backlight_probe()
66 if (IS_ERR(gbl->gpiod)) in gpio_backlight_probe()
67 return dev_err_probe(dev, PTR_ERR(gbl->gpiod), in gpio_backlight_probe()
73 bl = devm_backlight_device_register(dev, dev_name(dev), dev, gbl, in gpio_backlight_probe()
85 else if (gpiod_get_value_cansleep(gbl->gpiod) == 0) in gpio_backlight_probe()
93 ret = gpiod_direction_output(gbl->gpiod, init_brightness); in gpio_backlight_probe()