mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-07 13:53:24 +00:00
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>
This commit is contained in:
parent
e21ac64e66
commit
727d7c1c36
@ -119,7 +119,7 @@ static int raa215300_i2c_probe(struct i2c_client *client)
|
||||
}
|
||||
|
||||
if (clk_name) {
|
||||
char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
|
||||
const char *name = pmic_version >= 0x12 ? "isl1208" : "raa215300_a0";
|
||||
struct device_node *np = client->dev.of_node;
|
||||
u32 addr = RAA215300_RTC_DEFAULT_ADDR;
|
||||
struct i2c_board_info info = {};
|
||||
|
Loading…
Reference in New Issue
Block a user