]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (ina2xx) Pass register to alert limit write functions
authorGuenter Roeck <linux@roeck-us.net>
Wed, 28 Aug 2024 22:18:51 +0000 (15:18 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 30 Aug 2024 15:34:23 +0000 (08:34 -0700)
commit9965ebd1836fb75c7a80f20ca65469f5df0d6063
treed6af95b1ca219762e8740b7ccbf591233dffa8e2
parent814db9f1b8ec1cad9fa707c52c695550cbb66b80
hwmon: (ina2xx) Pass register to alert limit write functions

Pass the to-be-limited register to alert functions and use it to determine
conversion from limit to register value.

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