13 #include <linux/kernel.h>
14 #include <linux/module.h>
15 #include <linux/device.h>
17 #include <linux/i2c.h>
21 #include <linux/slab.h>
27 #define COMADJ_DEFAULT 97
64 tosa_bl_set_backlight(data, brightness);
77 .get_brightness = tosa_bl_get_brightness,
78 .update_status = tosa_bl_update_status,
97 dev_dbg(&data->
bl->dev,
"Unable to request gpio!\n");
104 i2c_set_clientdata(client, data);
112 if (IS_ERR(data->
bl)) {
113 ret = PTR_ERR(data->
bl);
117 data->
bl->props.brightness = 69;
120 backlight_update_status(data->
bl);
144 tosa_bl_set_backlight(data, 0);
153 backlight_update_status(data->
bl);
157 #define tosa_bl_suspend NULL
158 #define tosa_bl_resume NULL
172 .probe = tosa_bl_probe,
176 .id_table = tosa_bl_id,