ALSA/hda: intel-sdw-acpi: Correct sdw_intel_acpi_scan() function parameter
PATCH 1/1 ALSA/hda: intel-sdw-acpi: Correct sdw_intel_acpi_scan() function parameter
The acpi_handle should be just a handle and not a pointer in sdw_intel_acpi_scan() parameter list.
It is called with 'acpi_handle handle' as parameter and it is passing it to acpi_walk_namespace, which also expects acpi_handle and not acpi_handle*
Signed-off-by Peter Ujfalusi <[email protected]>
Reviewed-by Bard Liao <[email protected]>
Reviewed-by Liam Girdwood <[email protected]>
Reviewed-by Ranjani Sridharan <[email protected]>
--- include/linux/soundwire/sdw_intel.h | 2 +- sound/hda/intel-sdw-acpi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/soundwire/sdw_intel.h +1 -1
@@ -365,7 +365,7 @@ struct sdw_intel_res {* on e.g. which machine driver to select (I2S mode, HDaudio or * SoundWire). */ -int sdw_intel_acpi_scan (acpi_handle *parent_handle, +int sdw_intel_acpi_scan (acpi_handle parent_handle,struct sdw_intel_acpi_info *info);void sdw_intel_process_wakeen_event (struct sdw_intel_ctx *ctx);
sound/hda/intel-sdw-acpi.c +1 -1
@@ -177,7 +177,7 @@ static acpi_status sdw_intel_acpi_cb(acpi_handle handle, u32 level,* sdw_intel_startup() is required for creation of devices and bus * startup */ -int sdw_intel_acpi_scan (acpi_handle *parent_handle, +int sdw_intel_acpi_scan (acpi_handle parent_handle,struct sdw_intel_acpi_info *info) {acpi_status status;
Signature · 1 line
2.49.0
Takashi Iwai
AppliedQuoted 10 lines · Peter Ujfalusi
The
acpi_handleshould be just a handle and not a pointer insdw_intel_acpi_scan()parameter list.
It is called with 'acpi_handlehandle' as parameter and it is passing it toacpi_walk_namespace, which also expectsacpi_handleand not acpi_handle*Signed-off-by Peter Ujfalusi <[email protected]>Reviewed-by Bard Liao <[email protected]>Reviewed-by Liam Girdwood <[email protected]>Reviewed-by Ranjani Sridharan <[email protected]>
Thanks, applied now.
Takashi