Input: adxl34x - clean up a data type in adxl34x_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Oct 2020 00:10:09 +0000 (17:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:05:44 +0000 (13:05 +0100)
commit3df6cf35ef16c00a1623670c010f71dc7a491afb
treebe07cfe1d04fc72174bd5eda8181eef7002adfee
parent7fd1f1856a6e53c84af34d8f7ae841a56e3f05ba
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>
drivers/input/misc/adxl34x.c