linux-yocto/sound/hda
Greg Kroah-Hartman 45844a9403 ALSA: core: fix up bus match const issues.
[ Upstream commit 62f134ab19 ]

In commit d69d804845 ("driver core: have match() callback in struct
bus_type take a const *"), the match bus callback was changed to have
the driver be a const pointer.  Unfortunately that const attribute was
thrown away when container_of() is called, which is not correct and was
not caught by the compiler due to how container_of() is implemented.
Fix this up by correctly preserving the const attribute of the driver
passed to the bus match function which requires the hdac_driver match
function to also take a const pointer for the driver structure.

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Fixes: d69d804845 ("driver core: have match() callback in struct bus_type take a const *")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2025052204-hyphen-thermal-3e72@gregkh
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:31:33 +02:00
..
ext ALSA: hda: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:42 +02:00
array.c
hda_bus_type.c ALSA: core: fix up bus match const issues. 2025-06-19 15:31:33 +02:00
hdac_bus.c ALSA: hda: Skip event processing for unregistered codecs 2022-07-15 16:26:50 +02:00
hdac_component.c
hdac_controller.c ALSA: hda: hdac_controller: Implement support for use_pio_for_commands mode 2024-04-18 08:38:54 +02:00
hdac_device.c ALSA: hda/senarytech: add senarytech codec support 2024-06-18 11:59:08 +02:00
hdac_i915.c ALSA: hda: Skip i915 initialization on CNL/LKF-based platforms 2024-03-04 09:17:02 +01:00
hdac_regmap.c ALSA: hda: Use regcache_reg_cached() rather than open coding 2023-07-18 15:05:12 +01:00
hdac_stream.c ALSA: hda: Add missing parameter description for snd_hdac_stream_timecounter_init() 2024-10-03 09:24:45 +02:00
hdac_sysfs.c ALSA: hda: make kobj_type structure constant 2023-02-11 09:37:42 +01:00
hdmi_chmap.c ALSA: hda: Add input value sanity checks to HDMI channel map controls 2024-06-18 12:00:19 +02:00
intel-dsp-config.c ALSA: hda: intel-dsp-config: Add PTL-H support 2025-03-22 12:54:19 -07:00
intel-nhlt.c ALSA: hda: intel-nhlt: add intel_nhlt_ssp_device_type() function 2024-03-22 12:40:46 +01:00
intel-sdw-acpi.c ALSA/hda: intel-sdw-acpi: add support for sdw-manager-list property read 2024-10-15 07:54:16 +02:00
Kconfig ALSA: hda: Allow the default preallocation for x86 again 2024-09-07 10:42:03 +02:00
local.h
Makefile ALSA: hda: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:42 +02:00
trace.c
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00