Input: adxl34x - clean up a data type in adxl34x_probe()
Subsystems (4)
PATCH 1/1 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 e27c729219ad ("Input: add driver for ADXL345/346 Digital Accelerometers")
Signed-off-by Dan Carpenter <[email protected]>
--- drivers/input/misc/adxl34x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/misc/adxl34x.c +1 -1
@@ -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" );
Signature · 1 line
2.28.0
Quoted 10 lines
-----Original Message-----
From: Dan Carpenter <[email protected]>
Sent: Montag, 26. Oktober 2020 08:28
To: Hennerich, Michael <[email protected]>
Cc: Dmitry Torokhov <[email protected]>; linux- [email protected]; [email protected]
Subject: [PATCH] Input: adxl34x - clean up a data type inadxl34x_probe()
Quoted 5 lines
The "revid" is used to store negative error codes so it should be an int type.
Fixes e27c729219ad ("Input: add driver for ADXL345/346 DigitalAccelerometers")
Signed-off-by Dan Carpenter <[email protected]>
Quoted 20 lines
--- drivers/input/misc/adxl34x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/misc/adxl34x.c index renamed from drivers/input/misc/adxl34x.c +0
-0
5fe92d4ba3f0..4cc4e8ff42b3100644drivers/input/misc/adxl34x.c +1
-1@@ -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");
--
2.28.0
Quoted 5 lines · Dan Carpenter
The "revid" is used to store negative error codes so it should be an int type.
Fixes e27c729219ad ("Input: add driver for ADXL345/346 Digital Accelerometers")Signed-off-by Dan Carpenter <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry