mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
2d7a5c6c69
Fix cppcheck warning: sound/ac97/bus.c:133:60: style:inconclusive: Function 'snd_ac97_bus_scan_one' argument 1 names different: declaration 'ac97' definition 'adrv'. [funcArgNamesDifferent] Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200902212133.30964-14-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 lines
349 B
C
14 lines
349 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2016 Robert Jarzmik <robert.jarzmik@free.fr>
|
|
*/
|
|
|
|
unsigned int snd_ac97_bus_scan_one(struct ac97_controller *adrv,
|
|
unsigned int codec_num);
|
|
|
|
static inline bool ac97_ids_match(unsigned int id1, unsigned int id2,
|
|
unsigned int mask)
|
|
{
|
|
return (id1 & mask) == (id2 & mask);
|
|
}
|