mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 09:33:31 +02:00
ASoC: tas2781: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated,use strscpy() instead. No functional changes intended. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: HariKrishna Sagala <hariconscious@gmail.com> Link: https://patch.msgid.link/20251104054257.9953-2-hariconscious@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
84194c66aa
commit
3b071bdd26
|
|
@ -1996,7 +1996,8 @@ static void tasdevice_parse_dt(struct tasdevice_priv *tas_priv)
|
|||
dev_err(tas_priv->dev, "%s Can't get reset GPIO\n",
|
||||
__func__);
|
||||
|
||||
strcpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name);
|
||||
strscpy(tas_priv->dev_name, tasdevice_id[tas_priv->chip_id].name,
|
||||
sizeof(tas_priv->dev_name));
|
||||
}
|
||||
|
||||
static int tasdevice_i2c_probe(struct i2c_client *i2c)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user