Searched hist:b9fedb0a (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_core.c | b9fedb0a Tue Apr 09 15:49:09 CDT 2019 Lorenzo Bianconi <lorenzo@kernel.org> 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> b9fedb0a Tue Apr 09 15:49:09 CDT 2019 Lorenzo Bianconi <lorenzo@kernel.org> 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>
|