]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: cs35l41: Fix acpi_device_hid() not found
authorStefan Binding <sbinding@opensource.cirrus.com>
Mon, 10 Feb 2025 16:32:50 +0000 (16:32 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 10 Feb 2025 17:02:54 +0000 (17:02 +0000)
commitb19181638182d1f5c43757b471c056b6196c8ca3
tree0ecc527e9c5f0240f19771aea68d292bcfdcd4e4
parentccc8480d90e8cb60f06bd90e227f34784927e19f
ASoC: cs35l41: Fix acpi_device_hid() not found

Function acpi_device_hid() is only defined if CONFIG_ACPI is set.
Use #ifdef CONFIG_ACPI to ensure that cs35l41 driver only calls this
function is CONFIG_ACPI is define.

Fixes: 1d44a30ae3f9 ("ASoC: cs35l41: Fallback to using HID for system_name if no SUB is available")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202502090100.SbXmGFqs-lkp@intel.com/
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://patch.msgid.link/20250210163256.1722350-1-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l41.c