]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: cs35l41: Drop wrong use of ACPI_PTR()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Jul 2022 15:35:18 +0000 (18:35 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Jul 2022 06:28:13 +0000 (08:28 +0200)
commitb9155db8a64ec64cfa773e83c33f08e2606cadd0
tree44f9e792f4cfc47e9b88e4fa5281e1fd5547427a
parent6e4d68181eb77ae8630a58beecc9c40483b4533f
ALSA: hda: cs35l41: Drop wrong use of ACPI_PTR()

ACPI_PTR() is more harmful than helpful. For example, in this case
if CONFIG_ACPI=n, the ID table left unused which is not what we want.

Instead of adding ifdeffery or attribute here and there, drop ACPI_PTR().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220712153519.35692-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda_i2c.c
sound/pci/hda/cs35l41_hda_spi.c