Commit 3a349763 authored by Lucas Stach's avatar Lucas Stach Committed by Dmitry Torokhov

Input: synaptics-rmi4 - write config register values to the right offset

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: ff8f8370 (Input: synaptics-rmi4 - add support for 2D
                     sensors and F11)
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent bce1a784
...@@ -1230,7 +1230,7 @@ static int rmi_f11_initialize(struct rmi_function *fn) ...@@ -1230,7 +1230,7 @@ static int rmi_f11_initialize(struct rmi_function *fn)
} }
rc = f11_write_control_regs(fn, &f11->sens_query, 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) if (rc)
dev_warn(&fn->dev, "Failed to write control registers\n"); dev_warn(&fn->dev, "Failed to write control registers\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment