Commit 06ee3d3c authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Dmitry Torokhov

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 9e0af8a4
...@@ -106,8 +106,8 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev) ...@@ -106,8 +106,8 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
struct input_dev *input; struct input_dev *input;
int err; int err;
if (!pdata || !pdata->steps) { if (!pdata) {
dev_err(&pdev->dev, "invalid platform data\n"); dev_err(&pdev->dev, "missing platform data\n");
return -ENOENT; return -ENOENT;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment