diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 13:55:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 13:55:52 -0500 |
commit | dbe950f201a8edd353b0bd9079e8d536ee4ce37c (patch) | |
tree | dffbada6b3d33cc67383758570de22b4f45693b6 /drivers/input/tablet/aiptek.c | |
parent | f62f61917d72c1fb0101ad405664f6fc868d676b (diff) | |
parent | da733563be5a9da26fe81d9f007262d00b846e22 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (64 commits)
Input: tc3589x-keypad - add missing kerneldoc
Input: ucb1400-ts - switch to using dev_xxx() for diagnostic messages
Input: ucb1400_ts - convert to threaded IRQ
Input: ucb1400_ts - drop inline annotations
Input: usb1400_ts - add __devinit/__devexit section annotations
Input: ucb1400_ts - set driver owner
Input: ucb1400_ts - convert to use dev_pm_ops
Input: psmouse - make sure we do not use stale methods
Input: evdev - do not block waiting for an event if fd is nonblock
Input: evdev - if no events and non-block, return EAGAIN not 0
Input: evdev - only allow reading events if a full packet is present
Input: add driver for pixcir i2c touchscreens
Input: samsung-keypad - implement runtime power management support
Input: tegra-kbc - report wakeup key for some platforms
Input: tegra-kbc - add device tree bindings
Input: add driver for AUO In-Cell touchscreens using pixcir ICs
Input: mpu3050 - configure the sampling method
Input: mpu3050 - ensure we enable interrupts
Input: mpu3050 - add of_match table for device-tree probing
Input: sentelic - document the latest hardware
...
Fix up fairly trivial conflicts (device tree matching conflicting with
some independent cleanups) in drivers/input/keyboard/samsung-keypad.c
Diffstat (limited to 'drivers/input/tablet/aiptek.c')
-rw-r--r-- | drivers/input/tablet/aiptek.c | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/drivers/input/tablet/aiptek.c b/drivers/input/tablet/aiptek.c index d5ef3debd045..205d16aab441 100644 --- a/drivers/input/tablet/aiptek.c +++ b/drivers/input/tablet/aiptek.c | |||
@@ -1198,9 +1198,9 @@ static ssize_t | |||
1198 | store_tabletXtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 1198 | store_tabletXtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1199 | { | 1199 | { |
1200 | struct aiptek *aiptek = dev_get_drvdata(dev); | 1200 | struct aiptek *aiptek = dev_get_drvdata(dev); |
1201 | long x; | 1201 | int x; |
1202 | 1202 | ||
1203 | if (strict_strtol(buf, 10, &x)) { | 1203 | if (kstrtoint(buf, 10, &x)) { |
1204 | size_t len = buf[count - 1] == '\n' ? count - 1 : count; | 1204 | size_t len = buf[count - 1] == '\n' ? count - 1 : count; |
1205 | 1205 | ||
1206 | if (strncmp(buf, "disable", len)) | 1206 | if (strncmp(buf, "disable", len)) |
@@ -1240,9 +1240,9 @@ static ssize_t | |||
1240 | store_tabletYtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 1240 | store_tabletYtilt(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1241 | { | 1241 | { |
1242 | struct aiptek *aiptek = dev_get_drvdata(dev); | 1242 | struct aiptek *aiptek = dev_get_drvdata(dev); |
1243 | long y; | 1243 | int y; |
1244 | 1244 | ||
1245 | if (strict_strtol(buf, 10, &y)) { | 1245 | if (kstrtoint(buf, 10, &y)) { |
1246 | size_t len = buf[count - 1] == '\n' ? count - 1 : count; | 1246 | size_t len = buf[count - 1] == '\n' ? count - 1 : count; |
1247 | 1247 | ||
1248 | if (strncmp(buf, "disable", len)) | 1248 | if (strncmp(buf, "disable", len)) |
@@ -1277,12 +1277,13 @@ static ssize_t | |||
1277 | store_tabletJitterDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 1277 | store_tabletJitterDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1278 | { | 1278 | { |
1279 | struct aiptek *aiptek = dev_get_drvdata(dev); | 1279 | struct aiptek *aiptek = dev_get_drvdata(dev); |
1280 | long j; | 1280 | int err, j; |
1281 | 1281 | ||
1282 | if (strict_strtol(buf, 10, &j)) | 1282 | err = kstrtoint(buf, 10, &j); |
1283 | return -EINVAL; | 1283 | if (err) |
1284 | return err; | ||
1284 | 1285 | ||
1285 | aiptek->newSetting.jitterDelay = (int)j; | 1286 | aiptek->newSetting.jitterDelay = j; |
1286 | return count; | 1287 | return count; |
1287 | } | 1288 | } |
1288 | 1289 | ||
@@ -1306,12 +1307,13 @@ static ssize_t | |||
1306 | store_tabletProgrammableDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 1307 | store_tabletProgrammableDelay(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1307 | { | 1308 | { |
1308 | struct aiptek *aiptek = dev_get_drvdata(dev); | 1309 | struct aiptek *aiptek = dev_get_drvdata(dev); |
1309 | long d; | 1310 | int err, d; |
1310 | 1311 | ||
1311 | if (strict_strtol(buf, 10, &d)) | 1312 | err = kstrtoint(buf, 10, &d); |
1312 | return -EINVAL; | 1313 | if (err) |
1314 | return err; | ||
1313 | 1315 | ||
1314 | aiptek->newSetting.programmableDelay = (int)d; | 1316 | aiptek->newSetting.programmableDelay = d; |
1315 | return count; | 1317 | return count; |
1316 | } | 1318 | } |
1317 | 1319 | ||
@@ -1557,11 +1559,13 @@ static ssize_t | |||
1557 | store_tabletWheel(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 1559 | store_tabletWheel(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
1558 | { | 1560 | { |
1559 | struct aiptek *aiptek = dev_get_drvdata(dev); | 1561 | struct aiptek *aiptek = dev_get_drvdata(dev); |
1560 | long w; | 1562 | int err, w; |
1561 | 1563 | ||
1562 | if (strict_strtol(buf, 10, &w)) return -EINVAL; | 1564 | err = kstrtoint(buf, 10, &w); |
1565 | if (err) | ||
1566 | return err; | ||
1563 | 1567 | ||
1564 | aiptek->newSetting.wheel = (int)w; | 1568 | aiptek->newSetting.wheel = w; |
1565 | return count; | 1569 | return count; |
1566 | } | 1570 | } |
1567 | 1571 | ||