diff options
| author | Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk> | 2019-08-08 11:02:43 +0300 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2019-09-03 22:47:17 +0300 |
| commit | dcb12653875e7cd969a6a18346bc1ed24ffb893b (patch) | |
| tree | ac7971cf39f7116e691257542c712f9015d5aaa8 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 486842db3b79af126682d148477bf17ce025870a (diff) | |
| download | linux-dcb12653875e7cd969a6a18346bc1ed24ffb893b.tar.xz | |
hwmon: (lm75) Create structure to save all the configuration parameters.
* Add to lm75_data kind field to store the kind of device the driver is
working with.
* Add an structure to store the configuration parameters of all the
supported devices.
* Delete resolution_limits from lm75_data and include them in the structure
described above.
* Add a pointer to the configuration parameters structure to be used as a
reference to obtain the parameters.
* Delete switch-case approach to get the device configuration parameters.
* The structure is cleaner and easier to maintain.
Signed-off-by: Iker Perez del Palomar Sustatxa <iker.perez@codethink.co.uk>
Link: https://lore.kernel.org/r/20190808080246.8371-2-iker.perez@codethink.co.uk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
