mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
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:
|
History
|
|
|---|---|---|
| .. | ||
| ad5110.c | ||
| ad5272.c | ||
| ds1803.c | ||
| Kconfig | ||
| Makefile | ||
| max5432.c | ||
| max5481.c | ||
| max5487.c | ||
| mcp4018.c | ||
| mcp4131.c | ||
| mcp4531.c | ||
| mcp41010.c | ||
| tpl0102.c | ||
| x9250.c | ||