mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
7fd1f1856a
commit
3df6cf35ef
@ -696,7 +696,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
|
|||||||
struct input_dev *input_dev;
|
struct input_dev *input_dev;
|
||||||
const struct adxl34x_platform_data *pdata;
|
const struct adxl34x_platform_data *pdata;
|
||||||
int err, range, i;
|
int err, range, i;
|
||||||
unsigned char revid;
|
int revid;
|
||||||
|
|
||||||
if (!irq) {
|
if (!irq) {
|
||||||
dev_err(dev, "no IRQ?\n");
|
dev_err(dev, "no IRQ?\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user