ACPI / bind: Redefine acpi_preset_companion()
Rafael J. Wysocki authored

Modify acpi_preset_companion() to take a struct acpi_device pointer
instead of an ACPI handle as its second argument and redefine it as
a static inline wrapper around ACPI_COMPANION_SET() passing the
return value of acpi_find_child_device() directly as the second
argument to it.  Update its users to pass struct acpi_device
pointers instead of ACPI handles to it.

This allows some unnecessary acpi_bus_get_device() calls to be
avoided.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarAaron Lu <aaron.lu@intel.com>
Tested-by: Aaron Lu <aaron.lu@intel.com> # for ATA binding
9c5ad36d
Name Last commit Last update
..
acpi ACPI / bind: Redefine acpi_preset_companion()
asm-generic Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
clocksource drivers: clocksource: add support for ARM architected timer event stream
crypto keys: change asymmetric keys to use common hash definitions
drm Merge branch 'ttm-fixes-3.13' of git://people.freedesktop.org/~thomash/linux into drm-fixes
dt-bindings Merge tag 'mfd-3.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-next
keys KEYS: Separate the kernel signature checking keyring from module signing
kvm ARM: KVM: vgic: Bump VGIC_NR_IRQS to 256
linux ACPI / bind: Redefine acpi_preset_companion()
math-emu math-emu: correct test for downshifting fraction in _FP_FROM_INT()
media Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
memory ddr: add LPDDR2 data from JESD209-2
misc [media] altera-stapl: it is time to move out from staging
net genetlink: fix genl_set_err() group ID
pcmcia pcmcia/ds.h: introduce helper for pcmcia_driver module boilerplate
ras edac: add support for error type "Info"
rdma Merge branches 'cma', 'cxgb4', 'flowsteer', 'ipoib', 'misc', 'mlx4', 'mlx5', 'nes', 'ocrdma', 'qib' and 'srp' into for-next
rxrpc atomic: use <linux/atomic.h>
scsi Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
sound ALSA: compress: fix drain calls blocking other compress functions (v6)
target target_core_alua: Store supported ALUA states
trace Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
uapi Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
video Merge tag 'fbdev-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux
xen Merge tag 'stable/for-linus-3.13-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Kbuild