Lines Matching refs:bdev
17 static int picolcd_get_brightness(struct backlight_device *bdev) in picolcd_get_brightness() argument
19 struct picolcd_data *data = bl_get_data(bdev); in picolcd_get_brightness()
23 static int picolcd_set_brightness(struct backlight_device *bdev) in picolcd_set_brightness() argument
25 struct picolcd_data *data = bl_get_data(bdev); in picolcd_set_brightness()
32 data->lcd_brightness = bdev->props.brightness & 0x0ff; in picolcd_set_brightness()
33 data->lcd_power = bdev->props.power; in picolcd_set_brightness()
42 static int picolcd_check_bl_fb(struct backlight_device *bdev, struct fb_info *fb) in picolcd_check_bl_fb() argument
44 return fb && fb == picolcd_fbinfo((struct picolcd_data *)bl_get_data(bdev)); in picolcd_check_bl_fb()
56 struct backlight_device *bdev; in picolcd_init_backlight() local
69 bdev = backlight_device_register(dev_name(dev), dev, data, in picolcd_init_backlight()
71 if (IS_ERR(bdev)) { in picolcd_init_backlight()
73 return PTR_ERR(bdev); in picolcd_init_backlight()
75 bdev->props.brightness = 0xff; in picolcd_init_backlight()
77 data->backlight = bdev; in picolcd_init_backlight()
78 picolcd_set_brightness(bdev); in picolcd_init_backlight()
84 struct backlight_device *bdev = data->backlight; in picolcd_exit_backlight() local
87 backlight_device_unregister(bdev); in picolcd_exit_backlight()