summaryrefslogtreecommitdiff
path: root/drivers/iio/temperature
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2017-01-30 11:18:25 +0100
committerJonathan Cameron <jic23@kernel.org>2017-01-30 20:38:13 +0000
commit87ac0c24bd8ee970be14173d15bf2872e5f39d71 (patch)
tree62e754bcd2b9f30fae2d064b2d651a69803e49b3 /drivers/iio/temperature
parent6705e1277c21976f74ab3b3870b0f16d7cc78232 (diff)
iio: tmp007: Fix `name` attribute ABI
The IIO ABI specifies the name field of the IIO device as: Description of the physical chip / device for device X. Typically a part number. The tmp007 driver currently uses the name of the parent device instead. Change this to the part name to be in accordance with the ABI. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/temperature')
-rw-r--r--drivers/iio/temperature/tmp007.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/temperature/tmp007.c b/drivers/iio/temperature/tmp007.c
index 24c6c16d169d..f04d0d1f6ac8 100644
--- a/drivers/iio/temperature/tmp007.c
+++ b/drivers/iio/temperature/tmp007.c
@@ -233,7 +233,7 @@ static int tmp007_probe(struct i2c_client *client,
data->client = client;
indio_dev->dev.parent = &client->dev;
- indio_dev->name = dev_name(&client->dev);
+ indio_dev->name = "tmp007";
indio_dev->modes = INDIO_DIRECT_MODE;
indio_dev->info = &tmp007_info;