diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/video/display | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/video/display')
-rw-r--r-- | drivers/video/display/display-sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/display/display-sysfs.c b/drivers/video/display/display-sysfs.c index 4830b1bf51e5..f6a09ab0dac6 100644 --- a/drivers/video/display/display-sysfs.c +++ b/drivers/video/display/display-sysfs.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/idr.h> | 27 | #include <linux/idr.h> |
28 | #include <linux/err.h> | 28 | #include <linux/err.h> |
29 | #include <linux/kdev_t.h> | 29 | #include <linux/kdev_t.h> |
30 | #include <linux/slab.h> | ||
30 | 31 | ||
31 | static ssize_t display_show_name(struct device *dev, | 32 | static ssize_t display_show_name(struct device *dev, |
32 | struct device_attribute *attr, char *buf) | 33 | struct device_attribute *attr, char *buf) |
@@ -67,7 +68,7 @@ static ssize_t display_store_contrast(struct device *dev, | |||
67 | contrast = simple_strtoul(buf, &endp, 0); | 68 | contrast = simple_strtoul(buf, &endp, 0); |
68 | size = endp - buf; | 69 | size = endp - buf; |
69 | 70 | ||
70 | if (*endp && isspace(*endp)) | 71 | if (isspace(*endp)) |
71 | size++; | 72 | size++; |
72 | 73 | ||
73 | if (size != count) | 74 | if (size != count) |