summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-10-26 17:10:09 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-24 13:27:21 +0100
commitcc63818d353767d4fec5820072ad9e80bcc495fd (patch)
tree87c7b770c04e5d71255bb0b077156210cf115162 /drivers/input/misc
parent5f86796e5b68286687d3b83e6c602ed0e10c2a8c (diff)
downloadlinux-stable-cc63818d353767d4fec5820072ad9e80bcc495fd.tar.gz
linux-stable-cc63818d353767d4fec5820072ad9e80bcc495fd.tar.bz2
linux-stable-cc63818d353767d4fec5820072ad9e80bcc495fd.zip
Input: adxl34x - clean up a data type in adxl34x_probe()
[ Upstream commit 33b6c39e747c552fa770eecebd1776f1f4a222b1 ] 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 <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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/adxl34x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c
index a3e79bf5a04b..3695dd7dbb9b 100644
--- a/drivers/input/misc/adxl34x.c
+++ b/drivers/input/misc/adxl34x.c
@@ -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");