mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Input: mms114 - fix Y-resolution configuration
In mms114_setup_regs(), the driver mistakenly uses props->max_x instead
of props->max_y when configuring the low bits of the Y resolution
(MMS114_Y_RESOLUTION).
Fix this by using the correct property.
Fixes: 07b8481d4a ("Input: add MELFAS mms114 touchscreen driver")
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260704060115.353049-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
@@ -408,7 +408,7 @@ static int mms114_setup_regs(struct mms114_data *data)
|
||||
if (error < 0)
|
||||
return error;
|
||||
|
||||
val = props->max_x & 0xff;
|
||||
val = props->max_y & 0xff;
|
||||
error = mms114_write_reg(data, MMS114_Y_RESOLUTION, val);
|
||||
if (error < 0)
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user