Skip to content

Commit 8782ba9

Browse files
plbossarttiwai
authored andcommitted
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: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20241001070611.63288-4-yung-chuan.liao@linux.intel.com
1 parent 5b1b563 commit 8782ba9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/hda/intel-sdw-acpi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info)
5757
{
5858
struct acpi_device *adev = acpi_fetch_acpi_dev(info->handle);
5959
struct fwnode_handle *fwnode;
60-
u8 count, i;
60+
unsigned int i;
61+
u32 count;
6162
int ret;
6263

6364
if (!adev)
@@ -66,7 +67,7 @@ sdw_intel_scan_controller(struct sdw_intel_acpi_info *info)
6667
fwnode = acpi_fwnode_handle(adev);
6768

6869
/* Found controller, find links supported */
69-
ret = fwnode_property_read_u8_array(fwnode, "mipi-sdw-master-count", &count, 1);
70+
ret = fwnode_property_read_u32(fwnode, "mipi-sdw-master-count", &count);
7071

7172
/*
7273
* In theory we could check the number of links supported in

0 commit comments

Comments
 (0)