aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/input/rmi4/rmi_f30.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/rmi4/rmi_f30.c b/drivers/input/rmi4/rmi_f30.c
index 3422464af229..198678613382 100644
--- a/drivers/input/rmi4/rmi_f30.c
+++ b/drivers/input/rmi4/rmi_f30.c
@@ -258,9 +258,10 @@ static int rmi_f30_map_gpios(struct rmi_function *fn,
258 258
259 /* 259 /*
260 * Buttonpad could be also inferred from f30->has_mech_mouse_btns, 260 * Buttonpad could be also inferred from f30->has_mech_mouse_btns,
261 * but I am not sure, so use only the pdata info. 261 * but I am not sure, so use only the pdata info and the number of
262 * mapped buttons.
262 */ 263 */
263 if (pdata->f30_data.buttonpad) 264 if (pdata->f30_data.buttonpad || (button - BTN_LEFT == 1))
264 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit); 265 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
265 266
266 return 0; 267 return 0;