Skip to content

Commit 33b6c39

Browse files
Dan Carpenterdtor
Dan Carpenter
authored andcommitted
Input: adxl34x - clean up a data type in adxl34x_probe()
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 <[email protected]> Acked-by: Michael Hennerich <[email protected]> Link: https://lore.kernel.org/r/20201026072824.GA1620546@mwanda Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent bb0bc0c commit 33b6c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/misc/adxl34x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
696696
struct input_dev *input_dev;
697697
const struct adxl34x_platform_data *pdata;
698698
int err, range, i;
699-
unsigned char revid;
699+
int revid;
700700

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

0 commit comments

Comments
 (0)