diff options
author | Russell King | 2015-10-03 20:13:22 +0200 |
---|---|---|
committer | Bjorn Helgaas | 2015-10-09 18:21:16 +0200 |
commit | 8a182c2e4b661ec2a4056c93557258f089f14fe7 (patch) | |
tree | 5b6a4d697170538021a5ddc98ea5d0b3249ca187 /drivers/hv | |
parent | PCI: mvebu: Use devm_kcalloc() to allocate an array (diff) | |
download | kernel-qcow2-linux-8a182c2e4b661ec2a4056c93557258f089f14fe7.tar.gz kernel-qcow2-linux-8a182c2e4b661ec2a4056c93557258f089f14fe7.tar.xz kernel-qcow2-linux-8a182c2e4b661ec2a4056c93557258f089f14fe7.zip |
PCI: mvebu: Use gpio_desc to carry around gpio
Use a gpio_desc to carry around the gpio, so we can then make use of the
GPIOF_ACTIVE_LOW property rather than carrying that around as well. This
also avoids needing to use gpio_is_valid() to check whether we have a GPIO;
checking for a non-NULL descriptor is simpler.
Tested-by: Willy Tarreau <w@1wt.eu> (Iomega iConnect Kirkwood, MiraBox Armada 370)
Tested-by: Andrew Lunn <andrew@lunn.ch> (D-Link DIR664 Kirkwood)
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (Armada XP GP)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions