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/keyboard/lm8323.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/keyboard/lm8323.c')
-rw-r--r-- | drivers/input/keyboard/lm8323.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/input/keyboard/lm8323.c b/drivers/input/keyboard/lm8323.c index 82d1dc8badd5..21823bfc7911 100644 --- a/drivers/input/keyboard/lm8323.c +++ b/drivers/input/keyboard/lm8323.c | |||
@@ -545,13 +545,12 @@ static ssize_t lm8323_pwm_store_time(struct device *dev, | |||
545 | { | 545 | { |
546 | struct led_classdev *led_cdev = dev_get_drvdata(dev); | 546 | struct led_classdev *led_cdev = dev_get_drvdata(dev); |
547 | struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); | 547 | struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); |
548 | int ret; | 548 | int ret, time; |
549 | unsigned long time; | ||
550 | 549 | ||
551 | ret = strict_strtoul(buf, 10, &time); | 550 | ret = kstrtoint(buf, 10, &time); |
552 | /* Numbers only, please. */ | 551 | /* Numbers only, please. */ |
553 | if (ret) | 552 | if (ret) |
554 | return -EINVAL; | 553 | return ret; |
555 | 554 | ||
556 | pwm->fade_time = time; | 555 | pwm->fade_time = time; |
557 | 556 | ||
@@ -613,9 +612,9 @@ static ssize_t lm8323_set_disable(struct device *dev, | |||
613 | { | 612 | { |
614 | struct lm8323_chip *lm = dev_get_drvdata(dev); | 613 | struct lm8323_chip *lm = dev_get_drvdata(dev); |
615 | int ret; | 614 | int ret; |
616 | unsigned long i; | 615 | unsigned int i; |
617 | 616 | ||
618 | ret = strict_strtoul(buf, 10, &i); | 617 | ret = kstrtouint(buf, 10, &i); |
619 | 618 | ||
620 | mutex_lock(&lm->lock); | 619 | mutex_lock(&lm->lock); |
621 | lm->kp_enabled = !i; | 620 | lm->kp_enabled = !i; |