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:
HariKrishna Sagala 2025-11-04 11:12:58 +05:30 committed by Mark Brown
parent 84194c66aa
commit 3b071bdd26
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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)