misc: bt rfkill: toggle power GPIO based on current power state
authorNagarjuna Kristam <nkristam@nvidia.com>
Mon, 14 May 2012 06:50:05 +0000 (11:50 +0530)
committerSimone Willett <swillett@nvidia.com>
Tue, 15 May 2012 22:12:28 +0000 (15:12 -0700)
commit2c6ab704f63563a1119ded418d1ad1d280c6588f
treef38a4072c9f963846a96dea10010a58f4fc75421
parent9143c5b26abf8e4cbbd12fbb4554524866717e67
misc: bt rfkill: toggle power GPIO based on current power state

check if requested state and current BT power state is same,
if yes, do not toggle BT power GPIO's.
if not, set requested power state.

Bug 982600
Bug 928604

Change-Id: I82c65fd6d43940c86cc3de440295ba179a4ade33
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: http://git-master/r/102190
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/bcm4329_rfkill.c