mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
9e0af8a498
commit
06ee3d3c25
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue