ASoC: codecs: wsa883x: fix warning using-module-alias-sdw.cocci
authorGaosheng Cui <cuigaosheng1@huawei.com>
Tue, 5 Jul 2022 00:53:15 +0000 (08:53 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jul 2022 15:44:31 +0000 (16:44 +0100)
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20220705005315.663920-1-cuigaosheng1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa883x.c

index dcd88175b9cd7f04c9fa81f1b13f6265c1672089..63e1d7aa6137987d36be80c0ffcf77a8317f69e9 100644 (file)
@@ -1492,6 +1492,8 @@ static const struct sdw_device_id wsa883x_swr_id[] = {
        {},
 };
 
+MODULE_DEVICE_TABLE(sdw, wsa883x_swr_id);
+
 static struct sdw_driver wsa883x_codec_driver = {
        .driver = {
                .name = "wsa883x-codec",