]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: trf7970a: Set correct Vin voltage in Chip Status Control register
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 25 Mar 2014 15:54:36 +0000 (08:54 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 21 Apr 2014 22:37:27 +0000 (00:37 +0200)
commit1e794f8ada72cc71c34c0a01fa8ee62a6465b1d1
treebd3d6034c195a32dbe03f5b0f49cca99043e0ce4
parent37bea6f4197328aa83055cccfeef6b3da3b4a5fa
NFC: trf7970a: Set correct Vin voltage in Chip Status Control register

Currently, the trf7970a driver assumes that the Vin voltage is 5V when
it writes to the 'Chip Status Control' register. That may not be correct
so use the regulator facility to get the Vin voltage and set the VRS5_3
bit correctly when writing to that register.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c