Skip to content

Commit

Permalink
Input: adxl34x - clean up a data type in adxl34x_probe()
Browse files Browse the repository at this point in the history
The "revid" is used to store negative error codes so it should be an int
type.

Fixes: e27c729 ("Input: add driver for ADXL345/346 Digital Accelerometers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://lore.kernel.org/r/20201026072824.GA1620546@mwanda
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Dan Carpenter authored and Dmitry Torokhov committed Oct 27, 2020
1 parent bb0bc0c commit 33b6c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/adxl34x.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
struct input_dev *input_dev;
const struct adxl34x_platform_data *pdata;
int err, range, i;
unsigned char revid;
int revid;

if (!irq) {
dev_err(dev, "no IRQ?\n");
Expand Down

0 comments on commit 33b6c39

Please sign in to comment.