diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-07-03 23:04:53 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-07-29 20:31:10 +0100 |
commit | 244315b317350ad14a2f24b021f73c9dfcf83595 (patch) | |
tree | fe0c8c96caa484d12b4c4323396c6a321513d52c /fs | |
parent | 9abedf82c78505b9f9c8d9670cd06e67532eed71 (diff) |
iio: pressure: bmp280: Constify struct regmap_bus
`bmp280_regmap_bus` and `bmp380_regmap_bus` are conditionally assigned
to `bmp_regmap_bus`, which is only used to pass the struct as a
read-only member.
Add the const modifier to the structs and the pointer to move the data
to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Tested-By: Vasileios Amoiridis <vassilisamir@gmail.com>
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-10-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions