diff options
| author | David Lechner <dlechner@baylibre.com> | 2025-06-28 12:31:43 -0500 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-07-06 10:37:53 +0100 |
| commit | bae712b66cbc315915567665849e4cdf347dbd0a (patch) | |
| tree | 65ea079f109d9389d2d13e32304ee48a1717fe18 | |
| parent | ca494204c646b4661efe374fa1ab27171dffc89a (diff) | |
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>
| -rw-r--r-- | drivers/iio/imu/bmi160/bmi160_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/bmi160/bmi160_core.c b/drivers/iio/imu/bmi160/bmi160_core.c index 9aa54b95b89f..5f47708b4c5d 100644 --- a/drivers/iio/imu/bmi160/bmi160_core.c +++ b/drivers/iio/imu/bmi160/bmi160_core.c @@ -161,7 +161,7 @@ struct bmi160_regs { u8 pmu_cmd_suspend; }; -static struct bmi160_regs bmi160_regs[] = { +static const struct bmi160_regs bmi160_regs[] = { [BMI160_ACCEL] = { .data = BMI160_REG_DATA_ACCEL_XOUT_L, .config = BMI160_REG_ACCEL_CONFIG, |
