mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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>
This commit is contained in:
parent
ca494204c6
commit
bae712b66c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user