iio: potentiostat: lmp91000: add LMP91002 support
authorMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 8 May 2018 05:34:01 +0000 (22:34 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 May 2018 10:02:44 +0000 (11:02 +0100)
LMP91002 is register compatible so add devicetree and i2c client ids

Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
drivers/iio/potentiostat/lmp91000.c

index b9b621e94cd7d0694bbc24a42d1d2a179f37f22e..e6d0c2eb345c4cbf4fca7022549325ffa0a727d5 100644 (file)
@@ -1,10 +1,13 @@
-* Texas Instruments LMP91000 potentiostat
+* Texas Instruments LMP91000 series of potentiostats
 
-http://www.ti.com/lit/ds/symlink/lmp91000.pdf
+LMP91000: http://www.ti.com/lit/ds/symlink/lmp91000.pdf
+LMP91002: http://www.ti.com/lit/ds/symlink/lmp91002.pdf
 
 Required properties:
 
-  - compatible: should be "ti,lmp91000"
+  - compatible: should be one of the following:
+                 "ti,lmp91000"
+                 "ti,lmp91002"
   - reg: the I2C address of the device
   - io-channels: the phandle of the iio provider
 
index 85714055cc74a1f25c58984e437f118ff1cc78a2..90e895adf99755ca2f3569996f91b49ad8944084 100644 (file)
@@ -411,12 +411,14 @@ static int lmp91000_remove(struct i2c_client *client)
 
 static const struct of_device_id lmp91000_of_match[] = {
        { .compatible = "ti,lmp91000", },
+       { .compatible = "ti,lmp91002", },
        { },
 };
 MODULE_DEVICE_TABLE(of, lmp91000_of_match);
 
 static const struct i2c_device_id lmp91000_id[] = {
        { "lmp91000", 0 },
+       { "lmp91002", 0 },
        {}
 };
 MODULE_DEVICE_TABLE(i2c, lmp91000_id);