]> 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)
commitb69dfeca6abe4a3211908b6b9301b5956fbcd0f7
treebd3d6034c195a32dbe03f5b0f49cca99043e0ce4
parentce28b7466da68b265984f925194888b60074c084
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