diff options
| author | Takashi Iwai <tiwai@suse.de> | 2012-01-31 09:13:14 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2012-01-31 09:13:14 -0500 |
| commit | ea51e5040e24eefe44d70bc654a237ca1f0225b0 (patch) | |
| tree | df2e5922dcdfafae62a10d8cd97f98121064fc23 /drivers/input/input-polldev.c | |
| parent | 3422a47041b8cb8f14ac1e3926bcf711121df6dc (diff) | |
| parent | 8dbd52daee38adaae4d5a674bcca837e694a4f4c (diff) | |
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'drivers/input/input-polldev.c')
| -rw-r--r-- | drivers/input/input-polldev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/input/input-polldev.c b/drivers/input/input-polldev.c index 7dfe1009fae0..7f161d93203c 100644 --- a/drivers/input/input-polldev.c +++ b/drivers/input/input-polldev.c | |||
| @@ -84,10 +84,12 @@ static ssize_t input_polldev_set_poll(struct device *dev, | |||
| 84 | { | 84 | { |
| 85 | struct input_polled_dev *polldev = dev_get_drvdata(dev); | 85 | struct input_polled_dev *polldev = dev_get_drvdata(dev); |
| 86 | struct input_dev *input = polldev->input; | 86 | struct input_dev *input = polldev->input; |
| 87 | unsigned long interval; | 87 | unsigned int interval; |
| 88 | int err; | ||
| 88 | 89 | ||
| 89 | if (strict_strtoul(buf, 0, &interval)) | 90 | err = kstrtouint(buf, 0, &interval); |
| 90 | return -EINVAL; | 91 | if (err) |
| 92 | return err; | ||
| 91 | 93 | ||
| 92 | if (interval < polldev->poll_interval_min) | 94 | if (interval < polldev->poll_interval_min) |
| 93 | return -EINVAL; | 95 | return -EINVAL; |
