Lines Matching refs:bd
32 static void hp680bl_send_intensity(struct backlight_device *bd) in hp680bl_send_intensity() argument
36 int intensity = bd->props.brightness; in hp680bl_send_intensity()
38 if (bd->props.power != FB_BLANK_UNBLANK) in hp680bl_send_intensity()
40 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in hp680bl_send_intensity()
70 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_suspend() local
73 hp680bl_send_intensity(bd); in hp680bl_suspend()
79 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_resume() local
82 hp680bl_send_intensity(bd); in hp680bl_resume()
89 static int hp680bl_set_intensity(struct backlight_device *bd) in hp680bl_set_intensity() argument
91 hp680bl_send_intensity(bd); in hp680bl_set_intensity()
95 static int hp680bl_get_intensity(struct backlight_device *bd) in hp680bl_get_intensity() argument
108 struct backlight_device *bd; in hp680bl_probe() local
113 bd = devm_backlight_device_register(&pdev->dev, "hp680-bl", &pdev->dev, in hp680bl_probe()
115 if (IS_ERR(bd)) in hp680bl_probe()
116 return PTR_ERR(bd); in hp680bl_probe()
118 platform_set_drvdata(pdev, bd); in hp680bl_probe()
120 bd->props.brightness = HP680_DEFAULT_INTENSITY; in hp680bl_probe()
121 hp680bl_send_intensity(bd); in hp680bl_probe()
128 struct backlight_device *bd = platform_get_drvdata(pdev); in hp680bl_remove() local
130 bd->props.brightness = 0; in hp680bl_remove()
131 bd->props.power = 0; in hp680bl_remove()
132 hp680bl_send_intensity(bd); in hp680bl_remove()