pwm: Fixes for v5.3-rc4
This contains a single fix for a backlight brightness regression introduced in v5.3-rc1. -----BEGIN PGP SIGNATURE----- iQJNBAABCAA3FiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl1NeNcZHHRoaWVycnku cmVkaW5nQGdtYWlsLmNvbQAKCRDdI6zXfz6zobm1EACwdluZU2qDO2WZpgQDcaak ql0H3iH6VfKL8XnTHJYynOKN2hFJa1BIOMtrtjoJS1Ru3hCvo6wubV+w4umpnTHv bMA6e6gPXP95euB09ujU1rqmk141Betw/b//OAn/4MVuhXBpK4DdDquoW7wPnovb CG2/PkUb75ZJ+XC8ac68TPWkdBY2qrY+cJwpdyiqL8EV6iXEeO++9INbHVG2hWBk l+X5OOObJVavgHCj3MisdQQnozPVsDfrHq5zrL/8Co1wgSS8mLz7zikYfHvpThQe tszWy6XWYR9wE5m21DLKBbzYGAjOoGgSLpO5rF29Yf0yHyVdDX14rZpjnQ0RLKp3 Ef3yuJDbgkOfuzq25R0gncDmA3nyC1HEeZbXC87F/QWxlm4lMFAVZcob0HMxD6eW Vv1Oy2K0FOcvl/wjdXagdL4r2WXI+wombCrgljoXIOZs8+RcXslUnNll1e+k3EXS JTwPublRJnnMYL2hzuZ6lKm39aV5kZBWfNHuFTQ6CHuGV26xKeW8NiMpVitSw/Er nyoXITxwNQ3wilGyLfuQdS3ETAWdcyaw10Jqk9h5TadCNH4PsETUEqbKP2Oof9ST mWk8CJqAdZW4fPbfJCytPzRys/2luJDc8l0FLYPjRWBZ+Infg0QcSFEwrkF1bWro DeSiRFhwRJsxLgFHV7PIJA== =HMcG -----END PGP SIGNATURE----- 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:
commit
c808f2ad8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue