]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (max1619) Convert to use regmap
authorGuenter Roeck <linux@roeck-us.net>
Tue, 16 Jul 2024 05:26:22 +0000 (22:26 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 31 Jul 2024 17:43:53 +0000 (10:43 -0700)
commitf8016132ce49dc4acf5c476cebfc93c27fb493cc
treec45522affd8d90bf5664bf651f7cdd0d34c17ea4
parent02c3c4e7026b307a220132b59758432b6e7a0cac
hwmon: (max1619) Convert to use regmap

Use regmap for local caching, to hide register read/write address
differences, and for multi-byte operations. With this change,
the driver specific lock is no longer necessary.

While at it, check errors seen when initializing the chip and bail out
if chip initialization fails.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/max1619.rst
drivers/hwmon/max1619.c