Message ID | 20181123200714.GA16464@avx2 (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Rafael Wysocki |
Headers | show |
Series | acpi: fix argument of acpi_find_child_device() | expand |
On Friday, November 23, 2018 9:07:14 PM CET Alexey Dobriyan wrote: > acpi_find_child_device() accepts boolean not pointer as last argument. > > Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> > --- > > include/linux/acpi.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -101,7 +101,7 @@ static inline bool has_acpi_companion(struct device *dev) > static inline void acpi_preset_companion(struct device *dev, > struct acpi_device *parent, u64 addr) > { > - ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, NULL)); > + ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, false)); > } > > static inline const char *acpi_dev_name(struct acpi_device *adev) > Applied, thanks!
--- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -101,7 +101,7 @@ static inline bool has_acpi_companion(struct device *dev) static inline void acpi_preset_companion(struct device *dev, struct acpi_device *parent, u64 addr) { - ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, NULL)); + ACPI_COMPANION_SET(dev, acpi_find_child_device(parent, addr, false)); } static inline const char *acpi_dev_name(struct acpi_device *adev)
acpi_find_child_device() accepts boolean not pointer as last argument. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- include/linux/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)