usb: typec: intel_pmc_mux: Use the helper acpi_dev_get_memory_resources()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 7 Sep 2022 10:30:07 +0000 (13:30 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 10 Sep 2022 16:22:38 +0000 (18:22 +0200)
commit1538dc8c1561f0de4ba57a69e2a421a1a3951618
treec1d0795db0e66aa5e79e88fc52c9d2250d81fb14
parente12dee3736731e24b1e7367f87d66ac0fcd73ce7
usb: typec: intel_pmc_mux: Use the helper acpi_dev_get_memory_resources()

It removes the need to check the resource data type
separately.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/usb/typec/mux/intel_pmc_mux.c