iio: tmp007: Fix `name` attribute ABI
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 30 Jan 2017 10:18:25 +0000 (11:18 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 30 Jan 2017 20:38:13 +0000 (20:38 +0000)
commit87ac0c24bd8ee970be14173d15bf2872e5f39d71
tree62e754bcd2b9f30fae2d064b2d651a69803e49b3
parent6705e1277c21976f74ab3b3870b0f16d7cc78232
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>
drivers/iio/temperature/tmp007.c