diff options
| author | Iker Perez del Palomar Sustatxa <[email protected]> | 2019-08-08 09:02:43 +0100 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2019-09-03 12:47:17 -0700 |
| commit | dcb12653875e7cd969a6a18346bc1ed24ffb893b (patch) | |
| tree | ac7971cf39f7116e691257542c712f9015d5aaa8 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 486842db3b79af126682d148477bf17ce025870a (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions