mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
NFC: trf7970a: Don't turn off RF if its already off
Don't try to turn off of RF transmitter is its already off. Signed-off-by: Mark A. Greer <mgreer@animalcreek.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
307e5caf6f
commit
cfc708dbe4
1 changed files with 4 additions and 0 deletions
|
|
@ -859,6 +859,10 @@ err_out:
|
|||
|
||||
static void trf7970a_switch_rf_off(struct trf7970a *trf)
|
||||
{
|
||||
if ((trf->state == TRF7970A_ST_PWR_OFF) ||
|
||||
(trf->state == TRF7970A_ST_RF_OFF))
|
||||
return;
|
||||
|
||||
dev_dbg(trf->dev, "Switching rf off\n");
|
||||
|
||||
trf->chip_status_ctrl &= ~TRF7970A_CHIP_STATUS_RF_ON;
|
||||
|
|
|
|||
Loading…
Reference in a new issue