iio: adxl367: Use IIO_STATIC_CONST_DEVICE_ATTR()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 3 Oct 2022 08:12:25 +0000 (11:12 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:44:03 +0000 (19:44 +0000)
commitf0ab171b80d49a2a47b88f79de38ca64c7d641d4
tree14aa5a84455985581334086bfec19b209724b000
parent2cc64a23c4e26107887af23a62f8ba3c79ff7ab5
iio: adxl367: 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/c96c55363b8f36017ef7f18fdfe810cd3990e2a4.1664782676.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl367.c