[bt/rfkill]: make either RST/SHUTDOWN GPIO usage optional.
authorAnantha Idapalapati <aidapalapati@nvidia.com>
Wed, 29 Dec 2010 07:45:11 +0000 (12:45 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:43:03 +0000 (21:43 -0800)
commit8051399a2fe395ef7a6344d242dff13103a3b993
tree945f68139728ae5a9e28e7e54283e01599318518
parentf760ebbe3917a9a84ce27dee7e7ba6c6e637191f
[bt/rfkill]: make either RST/SHUTDOWN GPIO usage optional.

the current BCM4329 rfkill driver assumes usage of 2 GPIOs
known as RST and SHUTDOWN and the driver makes a particular
GPIO mandatory. Some of the platforms does not define both
GPIOs, instead a single either RST/SHUTDOWN GPIO is used to
setup the chip.

This change makes driver to consider any of the two GPIOs
as optional and use any of the RST/SHUTDOWN GPIOs.

Simultaneous usage of both GPIOs is also allowed.

Original-Change-Id: Ib66ea350e78642082f639514ef7a9def6e460e28
Reviewed-on: http://git-master/r/14534
Reviewed-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Tested-by: Anantha Idapalapati <aidapalapati@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R0d885111030f3123aeeeb8331f4e2abf08c88c8b
drivers/misc/bcm4329_rfkill.c