diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-08-31 17:15:29 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-09-04 18:31:03 +0300 |
commit | ff1c17e9a7623f73aa44c605a5e6a4396df46a5e (patch) | |
tree | ffc820b631d1f9e0536e4389668447b1bad2fd1d /drivers/iio | |
parent | 741d1e3783d9486d76534f2f08442e1f0eb108a1 (diff) | |
download | linux-ff1c17e9a7623f73aa44c605a5e6a4396df46a5e.tar.xz |
iio: magnetometer: yamaha-yas530: Make strings const in chip info
For better compiler coverage mark strings consts in the chip info.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220831141530.80572-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/magnetometer/yamaha-yas530.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/magnetometer/yamaha-yas530.c b/drivers/iio/magnetometer/yamaha-yas530.c index 533fd8c73024..c56c7c9efeb8 100644 --- a/drivers/iio/magnetometer/yamaha-yas530.c +++ b/drivers/iio/magnetometer/yamaha-yas530.c @@ -189,8 +189,8 @@ struct yas5xx; */ struct yas5xx_chip_info { unsigned int devid; - char *product_name; - char *version_names[2]; + const char *product_name; + const char *version_names[2]; const int *volatile_reg; int volatile_reg_qty; u32 scaling_val2; |