]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: imu: bno055: make bno055_sysfs_attr const
authorDavid Lechner <dlechner@baylibre.com>
Thu, 10 Jul 2025 02:20:01 +0000 (21:20 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 14 Jul 2025 18:20:54 +0000 (19:20 +0100)
commit50467d899a3fc3ea36b944bcc155f26aa0bd2023
tree02bc1a0ccff0a87b92e635b2aeedc1ee672053cc
parent399b883ec828e436f1a721bf8551b4da8727e65b
iio: imu: bno055: make bno055_sysfs_attr const

Add const qualifier to struct bno055_sysfs_attr and its array fields.
All of this is read-only data so it can be made const.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250709-iio-const-data-19-v2-2-fb3fc9191251@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/bno055/bno055.c