summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2022-08-18 16:15:16 +0200
committerTakashi Iwai <tiwai@suse.de>2022-08-19 11:29:13 +0200
commit21b3d4f58401350cc73e67717366d1127caa6f7f (patch)
tree135b892a39c6ad7fe6fa6048ec1cb1625199669d /sound/pci
parentd91857059defe6acb443d8a25691b43a0f9390e8 (diff)
downloadlinux-21b3d4f58401350cc73e67717366d1127caa6f7f.tar.gz
ALSA: hda: Remove unused MAX_PIN_CONFIGS constant
Since it was introduced around v2.6.30 it was never used. Also HDA specification does not mention any limitation on number of PIN configurations. Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20220818141517.109280-4-amadeuszx.slawinski@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_sysfs.c b/sound/pci/hda/hda_sysfs.c
index bf951c10ae61..69ebc37a4d6f 100644
--- a/sound/pci/hda/hda_sysfs.c
+++ b/sound/pci/hda/hda_sysfs.c
@@ -375,8 +375,6 @@ static ssize_t user_pin_configs_show(struct device *dev,
return pin_configs_show(codec, &codec->user_pins, buf);
}
-#define MAX_PIN_CONFIGS 32
-
static int parse_user_pin_configs(struct hda_codec *codec, const char *buf)
{
int nid, cfg, err;