Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4d6d336 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul
Browse files

acpi-dma: remove ugly conversion



In case of big endian CPU we have to convert either all fields in the structure
or leave this job to ACPICA. The second choice seems the best.

So, let's remove the ugly conversion that is not fully comprehensive anyway.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 0244d84f
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -43,7 +43,6 @@ static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp,
	struct list_head resource_list;
	struct list_head resource_list;
	struct resource_list_entry *rentry;
	struct resource_list_entry *rentry;
	resource_size_t mem = 0, irq = 0;
	resource_size_t mem = 0, irq = 0;
	u32 vendor_id;
	int ret;
	int ret;


	if (grp->shared_info_length != sizeof(struct acpi_csrt_shared_info))
	if (grp->shared_info_length != sizeof(struct acpi_csrt_shared_info))
@@ -73,9 +72,8 @@ static int acpi_dma_parse_resource_group(const struct acpi_csrt_group *grp,
	if (si->mmio_base_low != mem || si->gsi_interrupt != irq)
	if (si->mmio_base_low != mem || si->gsi_interrupt != irq)
		return 0;
		return 0;


	vendor_id = le32_to_cpu((__force __le32)grp->vendor_id);
	dev_dbg(&adev->dev, "matches with %.4s%04X (rev %u)\n",
	dev_dbg(&adev->dev, "matches with %.4s%04X (rev %u)\n",
		(char *)&vendor_id, grp->device_id, grp->revision);
		(char *)&grp->vendor_id, grp->device_id, grp->revision);


	/* Check if the request line range is available */
	/* Check if the request line range is available */
	if (si->base_request_line == 0 && si->num_handshake_signals == 0)
	if (si->base_request_line == 0 && si->num_handshake_signals == 0)