]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/cirrus_scodec_test: Fix incorrect setup of gpiochip
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 13 Jan 2026 13:09:54 +0000 (13:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:18 +0000 (11:21 +0100)
commitaaa969ffe3b4da17c96c54d7c88ea838d99cf10e
tree93723a52917750a1e5ee82857ed916bd16a6995e
parente1a4a4795c5a1214b32d3b75b454a41f943d7764
ALSA: hda/cirrus_scodec_test: Fix incorrect setup of gpiochip

[ Upstream commit c5e96e54eca3876d4ce8857e2e22adbe9f44f4a2 ]

Set gpiochip parent to the struct device of the dummy GPIO driver
so that the software node will be associated with the GPIO chip.

The recent commit e5d527be7e698 ("gpio: swnode: don't use the
swnode's name as the key for GPIO lookup") broke cirrus_scodec_test,
because the software node no longer gets associated with the GPIO
driver by name.

Instead, setting struct gpio_chip.parent to the owning struct device
will find the node using a normal fwnode lookup.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 2144833e7b414 ("ALSA: hda: cirrus_scodec: Add KUnit test")
Link: https://patch.msgid.link/20260113130954.574670-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/hda/codecs/side-codecs/cirrus_scodec_test.c