OSDN Git Service

iio: bmc150-accel-core: Use IIO_STATIC_CONST_DEVICE_ATTR()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 3 Oct 2022 08:13:10 +0000 (11:13 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:44:03 +0000 (19:44 +0000)
commitc02b2a5166a58823e8a335c486ee71ce4f22f2b7
treef925eb47f7d7e1c3dcf257172dd073ca5b9fee8e
parentf7e6804509eeb27accc6625150db3f02d0b93ad7
iio: bmc150-accel-core: 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/b1b0d662705b43d68594639fb7719bc431101f79.1664782676.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bmc150-accel-core.c