diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-10-27 17:25:09 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-10-29 08:29:29 +0100 |
commit | f71e0be5d297b25453fdf4c1757b3e83e94b5f98 (patch) | |
tree | 04a6fcbb2877b7600e2b096b0348a752298b63cb /sound/pci | |
parent | ALSA: scarlett2: Add missing check with firmware version control (diff) | |
download | linux-f71e0be5d297b25453fdf4c1757b3e83e94b5f98.tar.xz linux-f71e0be5d297b25453fdf4c1757b3e83e94b5f98.zip |
ALSA: hda: cs35l41: mark cs35l41_verify_id() static
The newly introduced function is global but only called in this one
file and has no extern prototype, so it should probably be static:
sound/pci/hda/cs35l41_hda.c:733:5: error: no previous prototype for 'cs35l41_verify_id' [-Werror=missing-prototypes]
733 | int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid)
Fixes: 881b7bce0c25 ("ALSA: hda: cs35l41: Run boot process during resume callbacks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231027152515.482411-1-arnd@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/cs35l41_hda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index 496ff6a9d300..98a5123e9f50 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -730,7 +730,7 @@ static int cs35l41_hda_channel_map(struct device *dev, unsigned int tx_num, unsi rx_slot); } -int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid) +static int cs35l41_verify_id(struct cs35l41_hda *cs35l41, unsigned int *regid, unsigned int *reg_revid) { unsigned int mtl_revid, chipid; int ret; |