diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-10-06 00:43:42 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-10-06 01:00:01 -0400 |
commit | 06ee3d3c254a8e8abb9549cd228325114f596e5c (patch) | |
tree | 08113ae65e01a98b4d44c066bc7dfaa9b7616df8 /drivers/input/misc/rotary_encoder.c | |
parent | 9e0af8a49872b8170c5a5da9d0262ae7834d2f9b (diff) |
Input: rotary_encoder - fix relative axis support
When the rotart_encoder driver is used to report relative axis
information the "steps" in the platform data could be missing
since it's not relevant.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc/rotary_encoder.c')
-rw-r--r-- | drivers/input/misc/rotary_encoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index c806fbf1e17..3b9f588fc74 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c | |||
@@ -106,8 +106,8 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev) | |||
106 | struct input_dev *input; | 106 | struct input_dev *input; |
107 | int err; | 107 | int err; |
108 | 108 | ||
109 | if (!pdata || !pdata->steps) { | 109 | if (!pdata) { |
110 | dev_err(&pdev->dev, "invalid platform data\n"); | 110 | dev_err(&pdev->dev, "missing platform data\n"); |
111 | return -ENOENT; | 111 | return -ENOENT; |
112 | } | 112 | } |
113 | 113 | ||