Skip to content

Commit 77dc3a6

Browse files
Lucas Tanuretiwai
authored andcommitted
ALSA: hda: cs35l41: Move cs35l41* calls to its own symbol namespace
Create own namespace and avoid polluting the global namespace Signed-off-by: Lucas Tanure <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 6e4320d commit 77dc3a6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sound/pci/hda/cs35l41_hda.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ int cs35l41_hda_probe(struct device *dev, const char *device_name, int id, int i
514514

515515
return ret;
516516
}
517-
EXPORT_SYMBOL_GPL(cs35l41_hda_probe);
517+
EXPORT_SYMBOL_NS_GPL(cs35l41_hda_probe, SND_HDA_SCODEC_CS35L41);
518518

519519
int cs35l41_hda_remove(struct device *dev)
520520
{
@@ -528,8 +528,7 @@ int cs35l41_hda_remove(struct device *dev)
528528

529529
return 0;
530530
}
531-
EXPORT_SYMBOL_GPL(cs35l41_hda_remove);
532-
531+
EXPORT_SYMBOL_NS_GPL(cs35l41_hda_remove, SND_HDA_SCODEC_CS35L41);
533532

534533
MODULE_DESCRIPTION("CS35L41 HDA Driver");
535534
MODULE_AUTHOR("Lucas Tanure, Cirrus Logic Inc, <[email protected]>");

sound/pci/hda/cs35l41_hda_i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ static struct i2c_driver cs35l41_i2c_driver = {
6262
module_i2c_driver(cs35l41_i2c_driver);
6363

6464
MODULE_DESCRIPTION("HDA CS35L41 driver");
65+
MODULE_IMPORT_NS(SND_HDA_SCODEC_CS35L41);
6566
MODULE_AUTHOR("Lucas Tanure <[email protected]>");
6667
MODULE_LICENSE("GPL");

sound/pci/hda/cs35l41_hda_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@ static struct spi_driver cs35l41_spi_driver = {
5959
module_spi_driver(cs35l41_spi_driver);
6060

6161
MODULE_DESCRIPTION("HDA CS35L41 driver");
62+
MODULE_IMPORT_NS(SND_HDA_SCODEC_CS35L41);
6263
MODULE_AUTHOR("Lucas Tanure <[email protected]>");
6364
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)