Lines Matching full:bd
31 static void hp680bl_send_intensity(struct backlight_device *bd) in hp680bl_send_intensity() argument
35 int intensity = backlight_get_brightness(bd); in hp680bl_send_intensity()
65 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_suspend() local
68 hp680bl_send_intensity(bd); in hp680bl_suspend()
74 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_resume() local
77 hp680bl_send_intensity(bd); in hp680bl_resume()
84 static int hp680bl_set_intensity(struct backlight_device *bd) in hp680bl_set_intensity() argument
86 hp680bl_send_intensity(bd); in hp680bl_set_intensity()
90 static int hp680bl_get_intensity(struct backlight_device *bd) in hp680bl_get_intensity() argument
103 struct backlight_device *bd; in hp680bl_probe() local
108 bd = devm_backlight_device_register(&pdev->dev, "hp680-bl", &pdev->dev, in hp680bl_probe()
110 if (IS_ERR(bd)) in hp680bl_probe()
111 return PTR_ERR(bd); in hp680bl_probe()
113 platform_set_drvdata(pdev, bd); in hp680bl_probe()
115 bd->props.brightness = HP680_DEFAULT_INTENSITY; in hp680bl_probe()
116 hp680bl_send_intensity(bd); in hp680bl_probe()
123 struct backlight_device *bd = platform_get_drvdata(pdev); in hp680bl_remove() local
125 bd->props.brightness = 0; in hp680bl_remove()
126 bd->props.power = 0; in hp680bl_remove()
127 hp680bl_send_intensity(bd); in hp680bl_remove()