]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
iio: imu: st_lsm6dsx: inline per-sensor data
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 9 Apr 2019 20:49:09 +0000 (22:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 22 Apr 2019 10:34:14 +0000 (11:34 +0100)
commitb9fedb0a177a3b05f5c5e85b499f0e5c96807036
treeb25a667ee93a6c03e7839d5567cf39ce2da9c482
parent8dd2d7c0fed7783c35a21c1c533216a18d98cd7b
iio: imu: st_lsm6dsx: inline per-sensor data

As it has been already done for other st sensors in 'commit 9049531c91b4
("iio: accel: st_accel: inline per-sensor data")', get rid of some
defines and just open code the values into the appropriate struct
elements since the semantic meaning is inherent in the name of the
C99-addressable fields and there is no reason to duplicate the code

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c