mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-06 01:18:53 -05:00
Merge tag 'pwm/for-5.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
Pull pwm fix from Thierry Reding: "A single fix for a backlight brightness regression introduced in this merge window" * tag 'pwm/for-5.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: pwm: Fallback to the static lookup-list when acpi_pwm_get fails
This commit is contained in:
@@ -882,8 +882,11 @@ struct pwm_device *pwm_get(struct device *dev, const char *con_id)
|
||||
return of_pwm_get(dev, dev->of_node, con_id);
|
||||
|
||||
/* then lookup via ACPI */
|
||||
if (dev && is_acpi_node(dev->fwnode))
|
||||
return acpi_pwm_get(dev->fwnode);
|
||||
if (dev && is_acpi_node(dev->fwnode)) {
|
||||
pwm = acpi_pwm_get(dev->fwnode);
|
||||
if (!IS_ERR(pwm) || PTR_ERR(pwm) != -ENOENT)
|
||||
return pwm;
|
||||
}
|
||||
|
||||
/*
|
||||
* We look up the provider in the static table typically provided by
|
||||
|
||||
Reference in New Issue
Block a user