From: Amadeusz Sławiński Date: Thu, 18 Aug 2022 14:15:16 +0000 (+0200) Subject: ALSA: hda: Remove unused MAX_PIN_CONFIGS constant X-Git-Tag: v6.1-rc5~166^2~17^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21b3d4f58401350cc73e67717366d1127caa6f7f;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Amadeusz Sławiński Link: https://lore.kernel.org/r/20220818141517.109280-4-amadeuszx.slawinski@linux.intel.com Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_sysfs.c b/sound/pci/hda/hda_sysfs.c index bf951c1..69ebc37 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;