iio: imu: st_lsm6dsx: use i2c/spi device name for iio_dev name
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Mon, 3 Apr 2017 17:27:39 +0000 (19:27 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Apr 2017 17:09:40 +0000 (18:09 +0100)
commit510c01063085b5dc7788d9953f9bf58e16b631e8
tree6521a8be24d96f50a828445b7dee3c5a7345b7a0
parent63c3ecd946d4ae2879ec0d8c6dcb90132a74d831
iio: imu: st_lsm6dsx: use i2c/spi device name for iio_dev name

Use the correct chip name (e.g. lsm6dsm) as suffix for iio_dev name
instead of a generic one (lsm6dsx)

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_spi.c