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.

regulator: raa215300: Add const definition

Add const definition to the initialized local variable name to avoid
overriding. Also the second parameter in strscpy is const char * instead of
char *.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230816135550.146657-3-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Biju Das and committed by
Mark Brown
727d7c1c e21ac64e

+1 -1
+1 -1
drivers/regulator/raa215300.c
··· 119 119 } 120 120 121 121 if (clk_name) { 122 - char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0"; 122 + const char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0"; 123 123 struct device_node *np = client->dev.of_node; 124 124 u32 addr = RAA215300_RTC_DEFAULT_ADDR; 125 125 struct i2c_board_info info = {};