diff options
author | Guenter Roeck <linux@roeck-us.net> | 2025-01-26 12:42:18 -0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2025-03-02 08:49:01 -0800 |
commit | 2a431adc96395f3e1c971d10fb75c17275b60d1b (patch) | |
tree | ab643998873a6b1b171951b281e63295b69c7b0c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 510db88a1c56abfbdb82c976f29bb3dc85a71c13 (diff) |
hwmon: (pmbus/core) Optimize debugfs block data attribute initialization
Define debugfs attributes which need block data access 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.
While this is currently only used for manufacturer specific attributes,
the access code is generic and also works for other block attributes,
so rename operation functions from _mfg to _block.
While at it, rename the "revison" file to "pmbus_revision" to make its
meaning more obvious and to create a clear distinction against the
"mfg_revision" file.
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions