aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/display
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/display')
-rw-r--r--drivers/video/display/display-sysfs.c3
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
31static ssize_t display_show_name(struct device *dev, 32static 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)