16 #include <linux/kernel.h>
17 #include <linux/module.h>
18 #include <linux/slab.h>
53 backlight_update_status(pcf_bl->
bl);
61 unsigned int new_brightness;
68 new_brightness = bl->
props.brightness;
97 .get_brightness = pcf50633_bl_get_brightness,
98 .update_status = pcf50633_bl_update_status,
114 memset(&bl_props, 0,
sizeof(bl_props));
116 bl_props.max_brightness = 0x3f;
123 bl_props.brightness = 0x3f;
124 pcf_bl->brightness_limit = 0x3f;
127 pcf_bl->pcf = dev_to_pcf50633(pdev->
dev.parent);
130 &pcf50633_bl_ops, &bl_props);
132 if (IS_ERR(pcf_bl->bl))
133 return PTR_ERR(pcf_bl->bl);
135 platform_set_drvdata(pdev, pcf_bl);
141 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1;
143 backlight_update_status(pcf_bl->bl);
150 struct pcf50633_bl *pcf_bl = platform_get_drvdata(pdev);
154 platform_set_drvdata(pdev,
NULL);
160 .probe = pcf50633_bl_probe,
163 .name =
"pcf50633-backlight",