diff options
| author | Peter Rosin <peda@axentia.se> | 2018-11-21 11:03:46 -0500 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2018-12-16 18:13:21 -0500 |
| commit | 737c086eddab6fae699ad7fc6963a91837b62b51 (patch) | |
| tree | 5a38783478d335313e33930e260240fc2a7d2d72 /include/linux/platform_data | |
| parent | e056fe25d9f021d45c3fb6068d11e56e9579754b (diff) | |
hwmon: (ntc_thermistor) use a table to lookup the thermistor type
Sort the entries while at it.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/ntc_thermistor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/platform_data/ntc_thermistor.h b/include/linux/platform_data/ntc_thermistor.h index 231a27c302ec..ee03d429742b 100644 --- a/include/linux/platform_data/ntc_thermistor.h +++ b/include/linux/platform_data/ntc_thermistor.h | |||
| @@ -24,12 +24,12 @@ | |||
| 24 | struct iio_channel; | 24 | struct iio_channel; |
| 25 | 25 | ||
| 26 | enum ntc_thermistor_type { | 26 | enum ntc_thermistor_type { |
| 27 | TYPE_NCPXXWB473, | ||
| 28 | TYPE_NCPXXWL333, | ||
| 29 | TYPE_B57330V2103, | 27 | TYPE_B57330V2103, |
| 28 | TYPE_B57891S0103, | ||
| 29 | TYPE_NCPXXWB473, | ||
| 30 | TYPE_NCPXXWF104, | 30 | TYPE_NCPXXWF104, |
| 31 | TYPE_NCPXXWL333, | ||
| 31 | TYPE_NCPXXXH103, | 32 | TYPE_NCPXXXH103, |
| 32 | TYPE_B57891S0103, | ||
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | struct ntc_thermistor_platform_data { | 35 | struct ntc_thermistor_platform_data { |
