diff options
| author | Lukas Schmid <lukas.schmid@netcube.li> | 2026-02-02 23:15:35 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-02-23 11:24:37 +0300 |
| commit | 85e4614524dca6c0a43874f475a17de2b9725648 (patch) | |
| tree | f255aaeb103f9ed75f9d21445aad1ff6cc0ab464 /include/linux | |
| parent | d23d763e00ace4e9c59f8d33e0713d401133ba88 (diff) | |
| download | linux-85e4614524dca6c0a43874f475a17de2b9725648.tar.xz | |
iio: potentiometer: mcp4131: fix double application of wiper shift
The MCP4131 wiper address is shifted twice when preparing the SPI
command in mcp4131_write_raw().
The address is already shifted when assigned to the local variable
"address", but is then shifted again when written to data->buf[0].
This results in an incorrect command being sent to the device and
breaks wiper writes to the second channel.
Remove the second shift and use the pre-shifted address directly
when composing the SPI transfer.
Fixes: 22d199a53910 ("iio: potentiometer: add driver for Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X")
Signed-off-by: Lukas Schmid <lukas.schmid@netcube.li>#
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
