Skip to content

Commit

Permalink
Input: synaptics-rmi4 - write config register values to the right offset
Browse files Browse the repository at this point in the history
Currently any changed config register values don't take effect, as the
function to write them back is called with the wrong register offset.

Fixes: ff8f837 (Input: synaptics-rmi4 - add support for 2D
                     sensors and F11)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Lucas Stach authored and Dmitry Torokhov committed Apr 27, 2019
1 parent bce1a78 commit 3a34976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/rmi4/rmi_f11.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ static int rmi_f11_initialize(struct rmi_function *fn)
}

rc = f11_write_control_regs(fn, &f11->sens_query,
&f11->dev_controls, fn->fd.query_base_addr);
&f11->dev_controls, fn->fd.control_base_addr);
if (rc)
dev_warn(&fn->dev, "Failed to write control registers\n");

Expand Down

0 comments on commit 3a34976

Please sign in to comment.