strcpy() is deprecated and using strcat() is discouraged. Replace them with
scnprintf(). No functional changes.
Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
data->adapter.owner = THIS_MODULE;
data->adapter.algo = &w1_f19_i2c_algorithm;
data->adapter.algo_data = sl;
- strcpy(data->adapter.name, "w1-");
- strcat(data->adapter.name, sl->name);
+ scnprintf(data->adapter.name, sizeof(data->adapter.name), "w1-%s",
+ sl->name);
data->adapter.dev.parent = &sl->dev;
data->adapter.quirks = &w1_f19_i2c_adapter_quirks;