Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andy Shevchenko and committed by
Jonathan Cameron
ff1c17e9 741d1e37

+2 -2
+2 -2
drivers/iio/magnetometer/yamaha-yas530.c
··· 189 189 */ 190 190 struct yas5xx_chip_info { 191 191 unsigned int devid; 192 - char *product_name; 193 - char *version_names[2]; 192 + const char *product_name; 193 + const char *version_names[2]; 194 194 const int *volatile_reg; 195 195 int volatile_reg_qty; 196 196 u32 scaling_val2;