pwm: lpss: Use device_get_match_data() to get device data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Sep 2022 16:24:18 +0000 (19:24 +0300)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 28 Sep 2022 14:18:11 +0000 (16:18 +0200)
commit7f8dd161787569949d8a5f93cad5a7ad629f884e
tree47eb6b179503f1b339a7fc5b543943b03d316774
parent68af6fb00f2f1e72521169d5a4283faa8533694d
pwm: lpss: Use device_get_match_data() to get device data

device_get_match_data() in ACPI case calls similar to the
acpi_match_device(). We may simplify the code and make it
generic by replacing the latter with the former.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss-platform.c