mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 08:31:39 +00:00
ACPI: LPSS: use acpi_dev_uid_match() for matching _UID
Now that we have _UID matching support for integer types, we can use acpi_dev_uid_match() for it. Signed-off-by: Raag Jadav <raag.jadav@intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
b2b32a1738
commit
5ecdb287be
@ -167,13 +167,9 @@ static struct pwm_lookup byt_pwm_lookup[] = {
|
||||
|
||||
static void byt_pwm_setup(struct lpss_private_data *pdata)
|
||||
{
|
||||
u64 uid;
|
||||
|
||||
/* Only call pwm_add_table for the first PWM controller */
|
||||
if (acpi_dev_uid_to_integer(pdata->adev, &uid) || uid != 1)
|
||||
return;
|
||||
|
||||
pwm_add_table(byt_pwm_lookup, ARRAY_SIZE(byt_pwm_lookup));
|
||||
if (acpi_dev_uid_match(pdata->adev, 1))
|
||||
pwm_add_table(byt_pwm_lookup, ARRAY_SIZE(byt_pwm_lookup));
|
||||
}
|
||||
|
||||
#define LPSS_I2C_ENABLE 0x6c
|
||||
@ -218,13 +214,9 @@ static struct pwm_lookup bsw_pwm_lookup[] = {
|
||||
|
||||
static void bsw_pwm_setup(struct lpss_private_data *pdata)
|
||||
{
|
||||
u64 uid;
|
||||
|
||||
/* Only call pwm_add_table for the first PWM controller */
|
||||
if (acpi_dev_uid_to_integer(pdata->adev, &uid) || uid != 1)
|
||||
return;
|
||||
|
||||
pwm_add_table(bsw_pwm_lookup, ARRAY_SIZE(bsw_pwm_lookup));
|
||||
if (acpi_dev_uid_match(pdata->adev, 1))
|
||||
pwm_add_table(bsw_pwm_lookup, ARRAY_SIZE(bsw_pwm_lookup));
|
||||
}
|
||||
|
||||
static const struct property_entry lpt_spi_properties[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user