]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (pmbus/core) Optimize debugfs status attribute initialization
authorGuenter Roeck <linux@roeck-us.net>
Sun, 26 Jan 2025 21:46:19 +0000 (13:46 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 2 Mar 2025 16:49:06 +0000 (08:49 -0800)
commit64fbb4c42ab910af6c06c37106f9e06ccde91e34
tree5948dbfdf0ddafe383072776b33bc5f84b788f36
parent2a431adc96395f3e1c971d10fb75c17275b60d1b
hwmon: (pmbus/core) Optimize debugfs status attribute initialization

Define debugfs attributes used to access status registers in a data
structure and loop through it instead of creating debugfs files
one by one. This reduces code size and simplifies adding additional
attributes if needed.

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