diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2022-03-23 06:40:56 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-05-22 21:32:31 +0300 |
commit | d45cd804280d5cf43d539f49f671ea26552cedc3 (patch) | |
tree | 879a46a8772d360fe901dba9c0cd98cc83ede9ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7b8664f126e90d1d2129b8653c587bf230dd800c (diff) | |
download | linux-d45cd804280d5cf43d539f49f671ea26552cedc3.tar.xz |
hwmon: (adt7475) Use enum chips when loading attenuator settings
Make use of enum chips and use a switch statement in load_attenuators()
so that the compiler can tell us if we've failed to cater for a
supported chip.
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220323034056.260455-4-chris.packham@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions