]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (pc87360) Use min() macro
authorShen Lichuan <shenlichuan@vivo.com>
Tue, 27 Aug 2024 07:04:42 +0000 (15:04 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 27 Aug 2024 15:12:23 +0000 (08:12 -0700)
commitac9cca7a6a17c6d8bd849be669005fac0420d4b5
tree0eeb9b3bee4bcf78dbcca37fbe3f3541b1567d25
parent758b62e562f2fdffd26a84dbeafbe6888a7e130c
hwmon: (pc87360) Use min() macro

Use the min() macro to simplify the pc87360_init_device() function
and improve its readability.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Message-ID: <20240827070442.40667-1-shenlichuan@vivo.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pc87360.c