]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (nzxt-smart2) make array detect_fans_report static const
authorColin Ian King <colin.i.king@gmail.com>
Sun, 9 Jan 2022 19:45:58 +0000 (19:45 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 10 Jan 2022 01:10:58 +0000 (17:10 -0800)
commitb91688143b4b97943961d88ae118eda9395516ad
tree336e9c0755b0bcf5397c75585cdd156011f47b1b
parent5961bef6f78b95b29ee93fa1908187c404fc879c
hwmon: (nzxt-smart2) make array detect_fans_report static const

Don't populate the read-only array detect_fans_report on the stack but
instead it static const. Also makes the object code a little smaller.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220109194558.45811-1-colin.i.king@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nzxt-smart2.c