Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: imu: bmi160: make bmi160_regs const

Add const qualifier to struct bmi160_regs bmi160_regs[]. This is
read-only data so it can be made const.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250628-iio-const-data-18-v1-1-dad85ac392ae@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Lechner and committed by
Jonathan Cameron
bae712b6 ca494204

+1 -1
+1 -1
drivers/iio/imu/bmi160/bmi160_core.c
··· 161 161 u8 pmu_cmd_suspend; 162 162 }; 163 163 164 - static struct bmi160_regs bmi160_regs[] = { 164 + static const struct bmi160_regs bmi160_regs[] = { 165 165 [BMI160_ACCEL] = { 166 166 .data = BMI160_REG_DATA_ACCEL_XOUT_L, 167 167 .config = BMI160_REG_ACCEL_CONFIG,