Message ID | 20210506230601.429756-1-mjsakellaropoulos@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix ili210x touchdata coordinates endianness. | expand |
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index d8fccf048bf4..15e68d5a96d8 100644 --- a/drivers/input/touchscreen/ili210x.c +++ b/drivers/input/touchscreen/ili210x.c @@ -90,8 +90,8 @@ static bool ili210x_touchdata_to_coords(const u8 *touchdata, if (touchdata[0] & BIT(finger)) return false; - *x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0); - *y = get_unaligned_be16(touchdata + 1 + (finger * 4) + 2); + *x = get_unaligned_le16(touchdata + 1 + (finger * 4) + 0); + *y = get_unaligned_le16(touchdata + 1 + (finger * 4) + 2); return true; }