]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/video/omap2/displays/panel-tpo-td043mtea1.c
OMAP: DSS2: Convert simple/strict_strto* to kstrto*
[mv-sheeva.git] / drivers / video / omap2 / displays / panel-tpo-td043mtea1.c
index 62bff58e2bad7401fdd25e8d54c669a659d6a883..2462b9ec66623f2fa33d6f0b4852a8938e5ac85a 100644 (file)
@@ -144,13 +144,15 @@ static ssize_t tpo_td043_vmirror_store(struct device *dev,
        struct device_attribute *attr, const char *buf, size_t count)
 {
        struct tpo_td043_device *tpo_td043 = dev_get_drvdata(dev);
-       long val;
+       int val;
        int ret;
 
-       ret = strict_strtol(buf, 0, &val);
+       ret = kstrtoint(buf, 0, &val);
        if (ret < 0)
                return ret;
 
+       val = !!val;
+
        ret = tpo_td043_write_mirror(tpo_td043->spi, tpo_td043->hmirror, val);
        if (ret < 0)
                return ret;
@@ -175,7 +177,7 @@ static ssize_t tpo_td043_mode_store(struct device *dev,
        long val;
        int ret;
 
-       ret = strict_strtol(buf, 0, &val);
+       ret = kstrtol(buf, 0, &val);
        if (ret != 0 || val & ~7)
                return -EINVAL;