mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
ALSA: usb-audio: Make some quirk-string helpers local
As snd_usb_quirk_flags_from_name() is used only locally, make it local. Also, drop the unused snd_usb_quirk_flag_find_name(), too. Only a code cleanup, no functional changes. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260729074523.92761-4-tiwai@suse.de
This commit is contained in:
@@ -2630,15 +2630,7 @@ static const char *const snd_usb_audio_quirk_flag_names[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *snd_usb_quirk_flag_find_name(unsigned long index)
|
||||
{
|
||||
if (index >= ARRAY_SIZE(snd_usb_audio_quirk_flag_names))
|
||||
return NULL;
|
||||
|
||||
return snd_usb_audio_quirk_flag_names[index];
|
||||
}
|
||||
|
||||
u64 snd_usb_quirk_flags_from_name(const char *name)
|
||||
static u64 snd_usb_quirk_flags_from_name(const char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -56,7 +56,4 @@ void snd_usb_init_quirk_flags_table(struct snd_usb_audio *chip);
|
||||
void snd_usb_init_quirk_flags_parse_string(struct snd_usb_audio *chip,
|
||||
const char *str);
|
||||
|
||||
const char *snd_usb_quirk_flag_find_name(unsigned long flag);
|
||||
u64 snd_usb_quirk_flags_from_name(const char *name);
|
||||
|
||||
#endif /* __USBAUDIO_QUIRKS_H */
|
||||
|
||||
Reference in New Issue
Block a user