Skip to content

Commit

Permalink
Input: adxl34x - fix sparse warning
Browse files Browse the repository at this point in the history
This fixes the following warning from sparse:

  CC [M]  drivers/input/misc/adxl34x.o
  CHECK   drivers/input/misc/adxl34x.c
drivers/input/misc/adxl34x.c:245:29: warning: cast to restricted __le16
drivers/input/misc/adxl34x.c:248:29: warning: cast to restricted __le16
drivers/input/misc/adxl34x.c:251:29: warning: cast to restricted __le16

Acked-by: Michael Hennerich <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
dtor committed Oct 16, 2021
1 parent c4be5e5 commit 804f354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/adxl34x.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static const struct adxl34x_platform_data adxl34x_default_init = {

static void adxl34x_get_triple(struct adxl34x *ac, struct axis_triple *axis)
{
short buf[3];
__le16 buf[3];

ac->bops->read_block(ac->dev, DATAX0, DATAZ1 - DATAX0 + 1, buf);

Expand Down

0 comments on commit 804f354

Please sign in to comment.