Commit ad2fc59a authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Greg Kroah-Hartman
Browse files

iio: adc: mcp3911: fix device dependent mappings for conversion result registers



[ Upstream commit f62c49d8 ]

The conversion result registers differs between devices. Make sure the
mapping is correct by using a device dependent .get_raw() callback function.

Fixes: 732ad342 ("iio: adc: mcp3911: add support for the whole MCP39xx family")
Co-developed-by: default avatarLukas Rauber <lukas.rauber@janitza.de>
Signed-off-by: default avatarLukas Rauber <lukas.rauber@janitza.de>
Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250428-mcp3911-fixes-v2-1-406e39330c3d@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9d6c8f56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment