Commit 8782ba96 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Takashi Iwai

ALSA/hda: intel-sdw-acpi: simplify sdw-master-count property read

For some reason we used an array of one u8 when the specification
requires a u32.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20241001070611.63288-4-yung-chuan.liao@linux.intel.com
parent 5b1b5631
...@@ -57,7 +57,8 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info) ...@@ -57,7 +57,8 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info)
{ {
struct acpi_device *adev = acpi_fetch_acpi_dev(info->handle); struct acpi_device *adev = acpi_fetch_acpi_dev(info->handle);
struct fwnode_handle *fwnode; struct fwnode_handle *fwnode;
u8 count, i; unsigned int i;
u32 count;
int ret; int ret;
if (!adev) if (!adev)
...@@ -66,7 +67,7 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info) ...@@ -66,7 +67,7 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info)
fwnode = acpi_fwnode_handle(adev); fwnode = acpi_fwnode_handle(adev);
/* Found controller, find links supported */ /* Found controller, find links supported */
ret = fwnode_property_read_u8_array(fwnode, "mipi-sdw-master-count", &count, 1); ret = fwnode_property_read_u32(fwnode, "mipi-sdw-master-count", &count);
/* /*
* In theory we could check the number of links supported in * In theory we could check the number of links supported in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment