diff options
author | Eugene Shalygin <eugene.shalygin@gmail.com> | 2022-04-27 16:29:58 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-05-20 19:57:06 +0200 |
commit | 5cd29012028d997f46518dae0a8133e0985713f3 (patch) | |
tree | 3e5b5170f1c439fc9efb153ef22f84141cea515a /Documentation/hwmon | |
parent | hwmon: (occ) Delay hwmon registration until user request (diff) | |
download | linux-5cd29012028d997f46518dae0a8133e0985713f3.tar.xz linux-5cd29012028d997f46518dae0a8133e0985713f3.zip |
hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data
We need to keep some more information about the current board than just
the sensors set, and with more boards to add the dmi id array grows
quickly. Our probe code is always the same so let's switch to a custom
test code and a custom board info array. That allows us to omit board
vendor string (ASUS uses two strings that differ in case) in the board
info and use case-insensitive comparison, and also do not duplicate
sensor definitions for such board variants as " (WI-FI)" when sensors
are identical to the base variant.
Also saves a quarter of the module size by replacing big dmi_system_id
structs with smaller ones.
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20220427143001.1443605-2-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
0 files changed, 0 insertions, 0 deletions