iio: adxl372: Use IIO_STATIC_CONST_DEVICE_ATTR()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 3 Oct 2022 08:12:48 +0000 (11:12 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:44:03 +0000 (19:44 +0000)
commitf7e6804509eeb27accc6625150db3f02d0b93ad7
treeba9796701a41ca39105d5b7cf9be277ecd01a685
parentf0ab171b80d49a2a47b88f79de38ca64c7d641d4
iio: adxl372: Use IIO_STATIC_CONST_DEVICE_ATTR()

Slightly simplify by dropping open-coded constant data iio_dev_attr
functions and using the IIO_STATIC_CONST_DEVICE_ATTR() instead.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/3632af8849ef101c54ec1f739596f22c773b067c.1664782676.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl372.c