diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/adp5520_bl.c | 123 | ||||
-rw-r--r-- | drivers/video/backlight/da903x_bl.c | 2 | ||||
-rw-r--r-- | drivers/video/backlight/lcd.c | 4 | ||||
-rw-r--r-- | drivers/video/display/display-sysfs.c | 2 | ||||
-rw-r--r-- | drivers/video/geode/display_gx.c | 4 | ||||
-rw-r--r-- | drivers/video/geode/gxfb.h | 2 | ||||
-rw-r--r-- | drivers/video/geode/gxfb_core.c | 2 | ||||
-rw-r--r-- | drivers/video/geode/lxfb.h | 2 | ||||
-rw-r--r-- | drivers/video/geode/lxfb_ops.c | 4 | ||||
-rw-r--r-- | drivers/video/geode/suspend_gx.c | 2 | ||||
-rw-r--r-- | drivers/video/geode/video_gx.c | 2 | ||||
-rw-r--r-- | drivers/video/hitfb.c | 2 | ||||
-rw-r--r-- | drivers/video/omap/lcd_2430sdp.c | 4 | ||||
-rw-r--r-- | drivers/video/output.c | 2 | ||||
-rw-r--r-- | drivers/video/pxafb.c | 2 | ||||
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 2 |
16 files changed, 89 insertions, 72 deletions
diff --git a/drivers/video/backlight/adp5520_bl.c b/drivers/video/backlight/adp5520_bl.c index ad05da5ba3c7..4c10edecfb66 100644 --- a/drivers/video/backlight/adp5520_bl.c +++ b/drivers/video/backlight/adp5520_bl.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | struct adp5520_bl { | 16 | struct adp5520_bl { |
17 | struct device *master; | 17 | struct device *master; |
18 | struct adp5520_backlight_platfrom_data *pdata; | 18 | struct adp5520_backlight_platform_data *pdata; |
19 | struct mutex lock; | 19 | struct mutex lock; |
20 | unsigned long cached_daylight_max; | 20 | unsigned long cached_daylight_max; |
21 | int id; | 21 | int id; |
@@ -31,29 +31,30 @@ static int adp5520_bl_set(struct backlight_device *bl, int brightness) | |||
31 | if (data->pdata->en_ambl_sens) { | 31 | if (data->pdata->en_ambl_sens) { |
32 | if ((brightness > 0) && (brightness < ADP5020_MAX_BRIGHTNESS)) { | 32 | if ((brightness > 0) && (brightness < ADP5020_MAX_BRIGHTNESS)) { |
33 | /* Disable Ambient Light auto adjust */ | 33 | /* Disable Ambient Light auto adjust */ |
34 | ret |= adp5520_clr_bits(master, BL_CONTROL, | 34 | ret |= adp5520_clr_bits(master, ADP5520_BL_CONTROL, |
35 | BL_AUTO_ADJ); | 35 | ADP5520_BL_AUTO_ADJ); |
36 | ret |= adp5520_write(master, DAYLIGHT_MAX, brightness); | 36 | ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, |
37 | brightness); | ||
37 | } else { | 38 | } else { |
38 | /* | 39 | /* |
39 | * MAX_BRIGHTNESS -> Enable Ambient Light auto adjust | 40 | * MAX_BRIGHTNESS -> Enable Ambient Light auto adjust |
40 | * restore daylight l3 sysfs brightness | 41 | * restore daylight l3 sysfs brightness |
41 | */ | 42 | */ |
42 | ret |= adp5520_write(master, DAYLIGHT_MAX, | 43 | ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, |
43 | data->cached_daylight_max); | 44 | data->cached_daylight_max); |
44 | ret |= adp5520_set_bits(master, BL_CONTROL, | 45 | ret |= adp5520_set_bits(master, ADP5520_BL_CONTROL, |
45 | BL_AUTO_ADJ); | 46 | ADP5520_BL_AUTO_ADJ); |
46 | } | 47 | } |
47 | } else { | 48 | } else { |
48 | ret |= adp5520_write(master, DAYLIGHT_MAX, brightness); | 49 | ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, brightness); |
49 | } | 50 | } |
50 | 51 | ||
51 | if (data->current_brightness && brightness == 0) | 52 | if (data->current_brightness && brightness == 0) |
52 | ret |= adp5520_set_bits(master, | 53 | ret |= adp5520_set_bits(master, |
53 | MODE_STATUS, DIM_EN); | 54 | ADP5520_MODE_STATUS, ADP5520_DIM_EN); |
54 | else if (data->current_brightness == 0 && brightness) | 55 | else if (data->current_brightness == 0 && brightness) |
55 | ret |= adp5520_clr_bits(master, | 56 | ret |= adp5520_clr_bits(master, |
56 | MODE_STATUS, DIM_EN); | 57 | ADP5520_MODE_STATUS, ADP5520_DIM_EN); |
57 | 58 | ||
58 | if (!ret) | 59 | if (!ret) |
59 | data->current_brightness = brightness; | 60 | data->current_brightness = brightness; |
@@ -79,7 +80,7 @@ static int adp5520_bl_get_brightness(struct backlight_device *bl) | |||
79 | int error; | 80 | int error; |
80 | uint8_t reg_val; | 81 | uint8_t reg_val; |
81 | 82 | ||
82 | error = adp5520_read(data->master, BL_VALUE, ®_val); | 83 | error = adp5520_read(data->master, ADP5520_BL_VALUE, ®_val); |
83 | 84 | ||
84 | return error ? data->current_brightness : reg_val; | 85 | return error ? data->current_brightness : reg_val; |
85 | } | 86 | } |
@@ -93,33 +94,46 @@ static int adp5520_bl_setup(struct backlight_device *bl) | |||
93 | { | 94 | { |
94 | struct adp5520_bl *data = bl_get_data(bl); | 95 | struct adp5520_bl *data = bl_get_data(bl); |
95 | struct device *master = data->master; | 96 | struct device *master = data->master; |
96 | struct adp5520_backlight_platfrom_data *pdata = data->pdata; | 97 | struct adp5520_backlight_platform_data *pdata = data->pdata; |
97 | int ret = 0; | 98 | int ret = 0; |
98 | 99 | ||
99 | ret |= adp5520_write(master, DAYLIGHT_MAX, pdata->l1_daylight_max); | 100 | ret |= adp5520_write(master, ADP5520_DAYLIGHT_MAX, |
100 | ret |= adp5520_write(master, DAYLIGHT_DIM, pdata->l1_daylight_dim); | 101 | pdata->l1_daylight_max); |
102 | ret |= adp5520_write(master, ADP5520_DAYLIGHT_DIM, | ||
103 | pdata->l1_daylight_dim); | ||
101 | 104 | ||
102 | if (pdata->en_ambl_sens) { | 105 | if (pdata->en_ambl_sens) { |
103 | data->cached_daylight_max = pdata->l1_daylight_max; | 106 | data->cached_daylight_max = pdata->l1_daylight_max; |
104 | ret |= adp5520_write(master, OFFICE_MAX, pdata->l2_office_max); | 107 | ret |= adp5520_write(master, ADP5520_OFFICE_MAX, |
105 | ret |= adp5520_write(master, OFFICE_DIM, pdata->l2_office_dim); | 108 | pdata->l2_office_max); |
106 | ret |= adp5520_write(master, DARK_MAX, pdata->l3_dark_max); | 109 | ret |= adp5520_write(master, ADP5520_OFFICE_DIM, |
107 | ret |= adp5520_write(master, DARK_DIM, pdata->l3_dark_dim); | 110 | pdata->l2_office_dim); |
108 | ret |= adp5520_write(master, L2_TRIP, pdata->l2_trip); | 111 | ret |= adp5520_write(master, ADP5520_DARK_MAX, |
109 | ret |= adp5520_write(master, L2_HYS, pdata->l2_hyst); | 112 | pdata->l3_dark_max); |
110 | ret |= adp5520_write(master, L3_TRIP, pdata->l3_trip); | 113 | ret |= adp5520_write(master, ADP5520_DARK_DIM, |
111 | ret |= adp5520_write(master, L3_HYS, pdata->l3_hyst); | 114 | pdata->l3_dark_dim); |
112 | ret |= adp5520_write(master, ALS_CMPR_CFG, | 115 | ret |= adp5520_write(master, ADP5520_L2_TRIP, |
113 | ALS_CMPR_CFG_VAL(pdata->abml_filt, L3_EN)); | 116 | pdata->l2_trip); |
117 | ret |= adp5520_write(master, ADP5520_L2_HYS, | ||
118 | pdata->l2_hyst); | ||
119 | ret |= adp5520_write(master, ADP5520_L3_TRIP, | ||
120 | pdata->l3_trip); | ||
121 | ret |= adp5520_write(master, ADP5520_L3_HYS, | ||
122 | pdata->l3_hyst); | ||
123 | ret |= adp5520_write(master, ADP5520_ALS_CMPR_CFG, | ||
124 | ALS_CMPR_CFG_VAL(pdata->abml_filt, | ||
125 | ADP5520_L3_EN)); | ||
114 | } | 126 | } |
115 | 127 | ||
116 | ret |= adp5520_write(master, BL_CONTROL, | 128 | ret |= adp5520_write(master, ADP5520_BL_CONTROL, |
117 | BL_CTRL_VAL(pdata->fade_led_law, pdata->en_ambl_sens)); | 129 | BL_CTRL_VAL(pdata->fade_led_law, |
130 | pdata->en_ambl_sens)); | ||
118 | 131 | ||
119 | ret |= adp5520_write(master, BL_FADE, FADE_VAL(pdata->fade_in, | 132 | ret |= adp5520_write(master, ADP5520_BL_FADE, FADE_VAL(pdata->fade_in, |
120 | pdata->fade_out)); | 133 | pdata->fade_out)); |
121 | 134 | ||
122 | ret |= adp5520_set_bits(master, MODE_STATUS, BL_EN | DIM_EN); | 135 | ret |= adp5520_set_bits(master, ADP5520_MODE_STATUS, |
136 | ADP5520_BL_EN | ADP5520_DIM_EN); | ||
123 | 137 | ||
124 | return ret; | 138 | return ret; |
125 | } | 139 | } |
@@ -156,29 +170,31 @@ static ssize_t adp5520_store(struct device *dev, const char *buf, | |||
156 | } | 170 | } |
157 | 171 | ||
158 | static ssize_t adp5520_bl_dark_max_show(struct device *dev, | 172 | static ssize_t adp5520_bl_dark_max_show(struct device *dev, |
159 | struct device_attribute *attr, char *buf) | 173 | struct device_attribute *attr, char *buf) |
160 | { | 174 | { |
161 | return adp5520_show(dev, buf, DARK_MAX); | 175 | return adp5520_show(dev, buf, ADP5520_DARK_MAX); |
162 | } | 176 | } |
163 | 177 | ||
164 | static ssize_t adp5520_bl_dark_max_store(struct device *dev, | 178 | static ssize_t adp5520_bl_dark_max_store(struct device *dev, |
165 | struct device_attribute *attr, const char *buf, size_t count) | 179 | struct device_attribute *attr, |
180 | const char *buf, size_t count) | ||
166 | { | 181 | { |
167 | return adp5520_store(dev, buf, count, DARK_MAX); | 182 | return adp5520_store(dev, buf, count, ADP5520_DARK_MAX); |
168 | } | 183 | } |
169 | static DEVICE_ATTR(dark_max, 0664, adp5520_bl_dark_max_show, | 184 | static DEVICE_ATTR(dark_max, 0664, adp5520_bl_dark_max_show, |
170 | adp5520_bl_dark_max_store); | 185 | adp5520_bl_dark_max_store); |
171 | 186 | ||
172 | static ssize_t adp5520_bl_office_max_show(struct device *dev, | 187 | static ssize_t adp5520_bl_office_max_show(struct device *dev, |
173 | struct device_attribute *attr, char *buf) | 188 | struct device_attribute *attr, char *buf) |
174 | { | 189 | { |
175 | return adp5520_show(dev, buf, OFFICE_MAX); | 190 | return adp5520_show(dev, buf, ADP5520_OFFICE_MAX); |
176 | } | 191 | } |
177 | 192 | ||
178 | static ssize_t adp5520_bl_office_max_store(struct device *dev, | 193 | static ssize_t adp5520_bl_office_max_store(struct device *dev, |
179 | struct device_attribute *attr, const char *buf, size_t count) | 194 | struct device_attribute *attr, |
195 | const char *buf, size_t count) | ||
180 | { | 196 | { |
181 | return adp5520_store(dev, buf, count, OFFICE_MAX); | 197 | return adp5520_store(dev, buf, count, ADP5520_OFFICE_MAX); |
182 | } | 198 | } |
183 | static DEVICE_ATTR(office_max, 0664, adp5520_bl_office_max_show, | 199 | static DEVICE_ATTR(office_max, 0664, adp5520_bl_office_max_show, |
184 | adp5520_bl_office_max_store); | 200 | adp5520_bl_office_max_store); |
@@ -186,16 +202,17 @@ static DEVICE_ATTR(office_max, 0664, adp5520_bl_office_max_show, | |||
186 | static ssize_t adp5520_bl_daylight_max_show(struct device *dev, | 202 | static ssize_t adp5520_bl_daylight_max_show(struct device *dev, |
187 | struct device_attribute *attr, char *buf) | 203 | struct device_attribute *attr, char *buf) |
188 | { | 204 | { |
189 | return adp5520_show(dev, buf, DAYLIGHT_MAX); | 205 | return adp5520_show(dev, buf, ADP5520_DAYLIGHT_MAX); |
190 | } | 206 | } |
191 | 207 | ||
192 | static ssize_t adp5520_bl_daylight_max_store(struct device *dev, | 208 | static ssize_t adp5520_bl_daylight_max_store(struct device *dev, |
193 | struct device_attribute *attr, const char *buf, size_t count) | 209 | struct device_attribute *attr, |
210 | const char *buf, size_t count) | ||
194 | { | 211 | { |
195 | struct adp5520_bl *data = dev_get_drvdata(dev); | 212 | struct adp5520_bl *data = dev_get_drvdata(dev); |
196 | 213 | ||
197 | strict_strtoul(buf, 10, &data->cached_daylight_max); | 214 | strict_strtoul(buf, 10, &data->cached_daylight_max); |
198 | return adp5520_store(dev, buf, count, DAYLIGHT_MAX); | 215 | return adp5520_store(dev, buf, count, ADP5520_DAYLIGHT_MAX); |
199 | } | 216 | } |
200 | static DEVICE_ATTR(daylight_max, 0664, adp5520_bl_daylight_max_show, | 217 | static DEVICE_ATTR(daylight_max, 0664, adp5520_bl_daylight_max_show, |
201 | adp5520_bl_daylight_max_store); | 218 | adp5520_bl_daylight_max_store); |
@@ -203,14 +220,14 @@ static DEVICE_ATTR(daylight_max, 0664, adp5520_bl_daylight_max_show, | |||
203 | static ssize_t adp5520_bl_dark_dim_show(struct device *dev, | 220 | static ssize_t adp5520_bl_dark_dim_show(struct device *dev, |
204 | struct device_attribute *attr, char *buf) | 221 | struct device_attribute *attr, char *buf) |
205 | { | 222 | { |
206 | return adp5520_show(dev, buf, DARK_DIM); | 223 | return adp5520_show(dev, buf, ADP5520_DARK_DIM); |
207 | } | 224 | } |
208 | 225 | ||
209 | static ssize_t adp5520_bl_dark_dim_store(struct device *dev, | 226 | static ssize_t adp5520_bl_dark_dim_store(struct device *dev, |
210 | struct device_attribute *attr, | 227 | struct device_attribute *attr, |
211 | const char *buf, size_t count) | 228 | const char *buf, size_t count) |
212 | { | 229 | { |
213 | return adp5520_store(dev, buf, count, DARK_DIM); | 230 | return adp5520_store(dev, buf, count, ADP5520_DARK_DIM); |
214 | } | 231 | } |
215 | static DEVICE_ATTR(dark_dim, 0664, adp5520_bl_dark_dim_show, | 232 | static DEVICE_ATTR(dark_dim, 0664, adp5520_bl_dark_dim_show, |
216 | adp5520_bl_dark_dim_store); | 233 | adp5520_bl_dark_dim_store); |
@@ -218,29 +235,29 @@ static DEVICE_ATTR(dark_dim, 0664, adp5520_bl_dark_dim_show, | |||
218 | static ssize_t adp5520_bl_office_dim_show(struct device *dev, | 235 | static ssize_t adp5520_bl_office_dim_show(struct device *dev, |
219 | struct device_attribute *attr, char *buf) | 236 | struct device_attribute *attr, char *buf) |
220 | { | 237 | { |
221 | return adp5520_show(dev, buf, OFFICE_DIM); | 238 | return adp5520_show(dev, buf, ADP5520_OFFICE_DIM); |
222 | } | 239 | } |
223 | 240 | ||
224 | static ssize_t adp5520_bl_office_dim_store(struct device *dev, | 241 | static ssize_t adp5520_bl_office_dim_store(struct device *dev, |
225 | struct device_attribute *attr, | 242 | struct device_attribute *attr, |
226 | const char *buf, size_t count) | 243 | const char *buf, size_t count) |
227 | { | 244 | { |
228 | return adp5520_store(dev, buf, count, OFFICE_DIM); | 245 | return adp5520_store(dev, buf, count, ADP5520_OFFICE_DIM); |
229 | } | 246 | } |
230 | static DEVICE_ATTR(office_dim, 0664, adp5520_bl_office_dim_show, | 247 | static DEVICE_ATTR(office_dim, 0664, adp5520_bl_office_dim_show, |
231 | adp5520_bl_office_dim_store); | 248 | adp5520_bl_office_dim_store); |
232 | 249 | ||
233 | static ssize_t adp5520_bl_daylight_dim_show(struct device *dev, | 250 | static ssize_t adp5520_bl_daylight_dim_show(struct device *dev, |
234 | struct device_attribute *attr, char *buf) | 251 | struct device_attribute *attr, char *buf) |
235 | { | 252 | { |
236 | return adp5520_show(dev, buf, DAYLIGHT_DIM); | 253 | return adp5520_show(dev, buf, ADP5520_DAYLIGHT_DIM); |
237 | } | 254 | } |
238 | 255 | ||
239 | static ssize_t adp5520_bl_daylight_dim_store(struct device *dev, | 256 | static ssize_t adp5520_bl_daylight_dim_store(struct device *dev, |
240 | struct device_attribute *attr, | 257 | struct device_attribute *attr, |
241 | const char *buf, size_t count) | 258 | const char *buf, size_t count) |
242 | { | 259 | { |
243 | return adp5520_store(dev, buf, count, DAYLIGHT_DIM); | 260 | return adp5520_store(dev, buf, count, ADP5520_DAYLIGHT_DIM); |
244 | } | 261 | } |
245 | static DEVICE_ATTR(daylight_dim, 0664, adp5520_bl_daylight_dim_show, | 262 | static DEVICE_ATTR(daylight_dim, 0664, adp5520_bl_daylight_dim_show, |
246 | adp5520_bl_daylight_dim_store); | 263 | adp5520_bl_daylight_dim_store); |
@@ -316,7 +333,7 @@ static int __devexit adp5520_bl_remove(struct platform_device *pdev) | |||
316 | struct backlight_device *bl = platform_get_drvdata(pdev); | 333 | struct backlight_device *bl = platform_get_drvdata(pdev); |
317 | struct adp5520_bl *data = bl_get_data(bl); | 334 | struct adp5520_bl *data = bl_get_data(bl); |
318 | 335 | ||
319 | adp5520_clr_bits(data->master, MODE_STATUS, BL_EN); | 336 | adp5520_clr_bits(data->master, ADP5520_MODE_STATUS, ADP5520_BL_EN); |
320 | 337 | ||
321 | if (data->pdata->en_ambl_sens) | 338 | if (data->pdata->en_ambl_sens) |
322 | sysfs_remove_group(&bl->dev.kobj, | 339 | sysfs_remove_group(&bl->dev.kobj, |
diff --git a/drivers/video/backlight/da903x_bl.c b/drivers/video/backlight/da903x_bl.c index 7fcb0eb54c60..f2d76dae1eb3 100644 --- a/drivers/video/backlight/da903x_bl.c +++ b/drivers/video/backlight/da903x_bl.c | |||
@@ -177,7 +177,7 @@ static int da903x_backlight_resume(struct device *dev) | |||
177 | return 0; | 177 | return 0; |
178 | } | 178 | } |
179 | 179 | ||
180 | static struct dev_pm_ops da903x_backlight_pm_ops = { | 180 | static const struct dev_pm_ops da903x_backlight_pm_ops = { |
181 | .suspend = da903x_backlight_suspend, | 181 | .suspend = da903x_backlight_suspend, |
182 | .resume = da903x_backlight_resume, | 182 | .resume = da903x_backlight_resume, |
183 | }; | 183 | }; |
diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c index a482dd7b0311..9b3be74cee5a 100644 --- a/drivers/video/backlight/lcd.c +++ b/drivers/video/backlight/lcd.c | |||
@@ -101,7 +101,7 @@ static ssize_t lcd_store_power(struct device *dev, | |||
101 | int power = simple_strtoul(buf, &endp, 0); | 101 | int power = simple_strtoul(buf, &endp, 0); |
102 | size_t size = endp - buf; | 102 | size_t size = endp - buf; |
103 | 103 | ||
104 | if (*endp && isspace(*endp)) | 104 | if (isspace(*endp)) |
105 | size++; | 105 | size++; |
106 | if (size != count) | 106 | if (size != count) |
107 | return -EINVAL; | 107 | return -EINVAL; |
@@ -140,7 +140,7 @@ static ssize_t lcd_store_contrast(struct device *dev, | |||
140 | int contrast = simple_strtoul(buf, &endp, 0); | 140 | int contrast = simple_strtoul(buf, &endp, 0); |
141 | size_t size = endp - buf; | 141 | size_t size = endp - buf; |
142 | 142 | ||
143 | if (*endp && isspace(*endp)) | 143 | if (isspace(*endp)) |
144 | size++; | 144 | size++; |
145 | if (size != count) | 145 | if (size != count) |
146 | return -EINVAL; | 146 | return -EINVAL; |
diff --git a/drivers/video/display/display-sysfs.c b/drivers/video/display/display-sysfs.c index 4830b1bf51e5..80abbf323b99 100644 --- a/drivers/video/display/display-sysfs.c +++ b/drivers/video/display/display-sysfs.c | |||
@@ -67,7 +67,7 @@ static ssize_t display_store_contrast(struct device *dev, | |||
67 | contrast = simple_strtoul(buf, &endp, 0); | 67 | contrast = simple_strtoul(buf, &endp, 0); |
68 | size = endp - buf; | 68 | size = endp - buf; |
69 | 69 | ||
70 | if (*endp && isspace(*endp)) | 70 | if (isspace(*endp)) |
71 | size++; | 71 | size++; |
72 | 72 | ||
73 | if (size != count) | 73 | if (size != count) |
diff --git a/drivers/video/geode/display_gx.c b/drivers/video/geode/display_gx.c index e759895bf3d3..f0af911a096d 100644 --- a/drivers/video/geode/display_gx.c +++ b/drivers/video/geode/display_gx.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/div64.h> | 18 | #include <asm/div64.h> |
19 | #include <asm/delay.h> | 19 | #include <asm/delay.h> |
20 | #include <asm/geode.h> | 20 | #include <linux/cs5535.h> |
21 | 21 | ||
22 | #include "gxfb.h" | 22 | #include "gxfb.h" |
23 | 23 | ||
@@ -25,7 +25,7 @@ unsigned int gx_frame_buffer_size(void) | |||
25 | { | 25 | { |
26 | unsigned int val; | 26 | unsigned int val; |
27 | 27 | ||
28 | if (!geode_has_vsa2()) { | 28 | if (!cs5535_has_vsa2()) { |
29 | uint32_t hi, lo; | 29 | uint32_t hi, lo; |
30 | 30 | ||
31 | /* The number of pages is (PMAX - PMIN)+1 */ | 31 | /* The number of pages is (PMAX - PMIN)+1 */ |
diff --git a/drivers/video/geode/gxfb.h b/drivers/video/geode/gxfb.h index 16a96f8fd8c5..d19e9378b0c0 100644 --- a/drivers/video/geode/gxfb.h +++ b/drivers/video/geode/gxfb.h | |||
@@ -340,7 +340,7 @@ static inline void write_fp(struct gxfb_par *par, int reg, uint32_t val) | |||
340 | } | 340 | } |
341 | 341 | ||
342 | 342 | ||
343 | /* MSRs are defined in asm/geode.h; their bitfields are here */ | 343 | /* MSRs are defined in linux/cs5535.h; their bitfields are here */ |
344 | 344 | ||
345 | #define MSR_GLCP_SYS_RSTPLL_DOTPOSTDIV3 (1 << 3) | 345 | #define MSR_GLCP_SYS_RSTPLL_DOTPOSTDIV3 (1 << 3) |
346 | #define MSR_GLCP_SYS_RSTPLL_DOTPREMULT2 (1 << 2) | 346 | #define MSR_GLCP_SYS_RSTPLL_DOTPREMULT2 (1 << 2) |
diff --git a/drivers/video/geode/gxfb_core.c b/drivers/video/geode/gxfb_core.c index 2552cac39e1c..b3e639d1e12c 100644 --- a/drivers/video/geode/gxfb_core.c +++ b/drivers/video/geode/gxfb_core.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <linux/suspend.h> | 32 | #include <linux/suspend.h> |
33 | #include <linux/init.h> | 33 | #include <linux/init.h> |
34 | #include <linux/pci.h> | 34 | #include <linux/pci.h> |
35 | #include <asm/geode.h> | 35 | #include <linux/cs5535.h> |
36 | 36 | ||
37 | #include "gxfb.h" | 37 | #include "gxfb.h" |
38 | 38 | ||
diff --git a/drivers/video/geode/lxfb.h b/drivers/video/geode/lxfb.h index 6a51448fd3f7..fc68a8b0a144 100644 --- a/drivers/video/geode/lxfb.h +++ b/drivers/video/geode/lxfb.h | |||
@@ -409,7 +409,7 @@ static inline void write_fp(struct lxfb_par *par, int reg, uint32_t val) | |||
409 | } | 409 | } |
410 | 410 | ||
411 | 411 | ||
412 | /* MSRs are defined in asm/geode.h; their bitfields are here */ | 412 | /* MSRs are defined in linux/cs5535.h; their bitfields are here */ |
413 | 413 | ||
414 | #define MSR_GLCP_DOTPLL_LOCK (1 << 25) /* r/o */ | 414 | #define MSR_GLCP_DOTPLL_LOCK (1 << 25) /* r/o */ |
415 | #define MSR_GLCP_DOTPLL_HALFPIX (1 << 24) | 415 | #define MSR_GLCP_DOTPLL_HALFPIX (1 << 24) |
diff --git a/drivers/video/geode/lxfb_ops.c b/drivers/video/geode/lxfb_ops.c index b1cd49c99356..0e5d8c7c3eba 100644 --- a/drivers/video/geode/lxfb_ops.c +++ b/drivers/video/geode/lxfb_ops.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/fb.h> | 13 | #include <linux/fb.h> |
14 | #include <linux/uaccess.h> | 14 | #include <linux/uaccess.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <asm/geode.h> | 16 | #include <linux/cs5535.h> |
17 | 17 | ||
18 | #include "lxfb.h" | 18 | #include "lxfb.h" |
19 | 19 | ||
@@ -307,7 +307,7 @@ unsigned int lx_framebuffer_size(void) | |||
307 | { | 307 | { |
308 | unsigned int val; | 308 | unsigned int val; |
309 | 309 | ||
310 | if (!geode_has_vsa2()) { | 310 | if (!cs5535_has_vsa2()) { |
311 | uint32_t hi, lo; | 311 | uint32_t hi, lo; |
312 | 312 | ||
313 | /* The number of pages is (PMAX - PMIN)+1 */ | 313 | /* The number of pages is (PMAX - PMIN)+1 */ |
diff --git a/drivers/video/geode/suspend_gx.c b/drivers/video/geode/suspend_gx.c index 9aff32ef8bb6..1bb043d70c64 100644 --- a/drivers/video/geode/suspend_gx.c +++ b/drivers/video/geode/suspend_gx.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <linux/fb.h> | 10 | #include <linux/fb.h> |
11 | #include <asm/io.h> | 11 | #include <asm/io.h> |
12 | #include <asm/msr.h> | 12 | #include <asm/msr.h> |
13 | #include <asm/geode.h> | 13 | #include <linux/cs5535.h> |
14 | #include <asm/delay.h> | 14 | #include <asm/delay.h> |
15 | 15 | ||
16 | #include "gxfb.h" | 16 | #include "gxfb.h" |
diff --git a/drivers/video/geode/video_gx.c b/drivers/video/geode/video_gx.c index b8d52a8360db..6082f653c68a 100644 --- a/drivers/video/geode/video_gx.c +++ b/drivers/video/geode/video_gx.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <asm/io.h> | 16 | #include <asm/io.h> |
17 | #include <asm/delay.h> | 17 | #include <asm/delay.h> |
18 | #include <asm/msr.h> | 18 | #include <asm/msr.h> |
19 | #include <asm/geode.h> | 19 | #include <linux/cs5535.h> |
20 | 20 | ||
21 | #include "gxfb.h" | 21 | #include "gxfb.h" |
22 | 22 | ||
diff --git a/drivers/video/hitfb.c b/drivers/video/hitfb.c index e7116a6d82d3..73c83a8de2d3 100644 --- a/drivers/video/hitfb.c +++ b/drivers/video/hitfb.c | |||
@@ -456,7 +456,7 @@ static int hitfb_resume(struct device *dev) | |||
456 | return 0; | 456 | return 0; |
457 | } | 457 | } |
458 | 458 | ||
459 | static struct dev_pm_ops hitfb_dev_pm_ops = { | 459 | static const struct dev_pm_ops hitfb_dev_pm_ops = { |
460 | .suspend = hitfb_suspend, | 460 | .suspend = hitfb_suspend, |
461 | .resume = hitfb_resume, | 461 | .resume = hitfb_resume, |
462 | }; | 462 | }; |
diff --git a/drivers/video/omap/lcd_2430sdp.c b/drivers/video/omap/lcd_2430sdp.c index 760645d9dbb6..e3eccc9af78e 100644 --- a/drivers/video/omap/lcd_2430sdp.c +++ b/drivers/video/omap/lcd_2430sdp.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/delay.h> | 26 | #include <linux/delay.h> |
27 | #include <linux/gpio.h> | 27 | #include <linux/gpio.h> |
28 | #include <linux/i2c/twl4030.h> | 28 | #include <linux/i2c/twl.h> |
29 | 29 | ||
30 | #include <plat/mux.h> | 30 | #include <plat/mux.h> |
31 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
@@ -52,7 +52,7 @@ static unsigned enable_gpio; | |||
52 | #define TWL4030_VPLL2_DEV_GRP 0x33 | 52 | #define TWL4030_VPLL2_DEV_GRP 0x33 |
53 | #define TWL4030_VPLL2_DEDICATED 0x36 | 53 | #define TWL4030_VPLL2_DEDICATED 0x36 |
54 | 54 | ||
55 | #define t2_out(c, r, v) twl4030_i2c_write_u8(c, r, v) | 55 | #define t2_out(c, r, v) twl_i2c_write_u8(c, r, v) |
56 | 56 | ||
57 | 57 | ||
58 | static int sdp2430_panel_init(struct lcd_panel *panel, | 58 | static int sdp2430_panel_init(struct lcd_panel *panel, |
diff --git a/drivers/video/output.c b/drivers/video/output.c index 5e6439ae7394..5137aa016b83 100644 --- a/drivers/video/output.c +++ b/drivers/video/output.c | |||
@@ -50,7 +50,7 @@ static ssize_t video_output_store_state(struct device *dev, | |||
50 | int request_state = simple_strtoul(buf,&endp,0); | 50 | int request_state = simple_strtoul(buf,&endp,0); |
51 | size_t size = endp - buf; | 51 | size_t size = endp - buf; |
52 | 52 | ||
53 | if (*endp && isspace(*endp)) | 53 | if (isspace(*endp)) |
54 | size++; | 54 | size++; |
55 | if (size != count) | 55 | if (size != count) |
56 | return -EINVAL; | 56 | return -EINVAL; |
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index f58a3aae6ea6..b7e58059b592 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -1667,7 +1667,7 @@ static int pxafb_resume(struct device *dev) | |||
1667 | return 0; | 1667 | return 0; |
1668 | } | 1668 | } |
1669 | 1669 | ||
1670 | static struct dev_pm_ops pxafb_pm_ops = { | 1670 | static const struct dev_pm_ops pxafb_pm_ops = { |
1671 | .suspend = pxafb_suspend, | 1671 | .suspend = pxafb_suspend, |
1672 | .resume = pxafb_resume, | 1672 | .resume = pxafb_resume, |
1673 | }; | 1673 | }; |
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index b4b5de930cf5..8a65fb6648a6 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -890,7 +890,7 @@ static int sh_mobile_lcdc_runtime_resume(struct device *dev) | |||
890 | return 0; | 890 | return 0; |
891 | } | 891 | } |
892 | 892 | ||
893 | static struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = { | 893 | static const struct dev_pm_ops sh_mobile_lcdc_dev_pm_ops = { |
894 | .suspend = sh_mobile_lcdc_suspend, | 894 | .suspend = sh_mobile_lcdc_suspend, |
895 | .resume = sh_mobile_lcdc_resume, | 895 | .resume = sh_mobile_lcdc_resume, |
896 | .runtime_suspend = sh_mobile_lcdc_runtime_suspend, | 896 | .runtime_suspend = sh_mobile_lcdc_runtime_suspend, |