Skip to content

Commit

Permalink
Input: rotary_encoder - fix relative axis support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Dmitry Torokhov committed Oct 6, 2009
1 parent 9e0af8a commit 06ee3d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/misc/rotary_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ static int __devinit rotary_encoder_probe(struct platform_device *pdev)
struct input_dev *input;
int err;

if (!pdata || !pdata->steps) {
dev_err(&pdev->dev, "invalid platform data\n");
if (!pdata) {
dev_err(&pdev->dev, "missing platform data\n");
return -ENOENT;
}

Expand Down

0 comments on commit 06ee3d3

Please sign in to comment.