From: Andy Shevchenko Date: Wed, 31 Aug 2022 14:15:29 +0000 (+0300) Subject: iio: magnetometer: yamaha-yas530: Make strings const in chip info X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ff1c17e9a7623f73aa44c605a5e6a4396df46a5e;p=linux.git 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 Link: https://lore.kernel.org/r/20220831141530.80572-2-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/yamaha-yas530.c b/drivers/iio/magnetometer/yamaha-yas530.c index 533fd8c730241..c56c7c9efeb8d 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;