]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
iio: temperature: maxim_thermocouple: add MAX31856 part
authorMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 6 May 2017 01:28:28 +0000 (18:28 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 May 2017 11:36:41 +0000 (12:36 +0100)
MAX31856 is register equivalent to the MAX31855 but suppports J, N, R,
S, T, E and B type thermocouples in addition to K-type.

Data conversion for the various types happens transparently to the driver
via probe type detection, and a LUT on the sensor.

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/temperature/maxim_thermocouple.c

index 557214202eff35dd870ea085a81161de2982c147..d70e2e53d6a78cc5ab8ee073a7e01e5f635483d1 100644 (file)
@@ -267,6 +267,7 @@ static int maxim_thermocouple_remove(struct spi_device *spi)
 static const struct spi_device_id maxim_thermocouple_id[] = {
        {"max6675", MAX6675},
        {"max31855", MAX31855},
+       {"max31856", MAX31855},
        {},
 };
 MODULE_DEVICE_TABLE(spi, maxim_thermocouple_id);