]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (pmbus/core) Make debugfs code unconditional
authorGuenter Roeck <linux@roeck-us.net>
Sun, 26 Jan 2025 03:19:37 +0000 (19:19 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 2 Mar 2025 16:48:32 +0000 (08:48 -0800)
commit05452a3328a57237878f2f8759cec91d7583915c
tree767f9cc8622d30041e74dce073dc2edd5035a999
parentde438ec92f83a2c3107514dd676fbd7db5eebbba
hwmon: (pmbus/core) Make debugfs code unconditional

Drop contitionals around debugfs code to compile it unconditionally.
In practice it will be optimized away by the compiler if CONFIG_DEBUG_FS
is not enabled, so the code size is not affected by this change.

Also silently ignore errors if debugfs initialization fails.

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