Skip to content

Commit

Permalink
iio: potentiostat: lmp91000: add LMP91002 support
Browse files Browse the repository at this point in the history
LMP91002 is register compatible so add devicetree and i2c client ids

Signed-off-by: Matt Ranostay <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
mranostay authored and jic23 committed May 12, 2018
1 parent 3345d47 commit 0cb2aab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 2 additions & 0 deletions drivers/iio/potentiostat/lmp91000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cb2aab

Please sign in to comment.