summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorEliav Farber <farbere@amazon.com>2022-09-08 15:24:33 +0000
committerGuenter Roeck <linux@roeck-us.net>2022-09-08 11:56:03 -0700
commit91a9e063cdcfca8fe642b078d6fae4ce49187975 (patch)
tree63d2b4376349df782faa82aa76385c39780de2c3 /samples
parent227a3a2fc31d8e4bb9c88d4804e19530af245b1b (diff)
downloadlinux-stable-91a9e063cdcfca8fe642b078d6fae4ce49187975.tar.gz
linux-stable-91a9e063cdcfca8fe642b078d6fae4ce49187975.tar.bz2
linux-stable-91a9e063cdcfca8fe642b078d6fae4ce49187975.zip
hwmon: (mr75203) fix multi-channel voltage reading
Fix voltage allocation and reading to support all channels in all VMs. Prior to this change allocation and reading were done only for the first channel in each VM. This change counts the total number of channels for allocation, and takes into account the channel offset when reading the sample data register. Fixes: 9d823351a337 ("hwmon: Add hardware monitoring driver for Moortec MR75203 PVT controller") Signed-off-by: Eliav Farber <farbere@amazon.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220908152449.35457-6-farbere@amazon.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions