diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2023-08-16 14:55:50 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-16 15:02:42 +0100 |
commit | 727d7c1c3695657873d62030b968ba97c8698c54 (patch) | |
tree | 611f1ce4ffd51658404bded860b87bc54d50c984 /drivers/regulator | |
parent | e21ac64e669e960688e79bf5babeed63132dac8a (diff) |
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/raa215300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/raa215300.c b/drivers/regulator/raa215300.c index 898f53cac02c..bdbf1e4ce468 100644 --- a/drivers/regulator/raa215300.c +++ b/drivers/regulator/raa215300.c @@ -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 = {}; |