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)
commitebcc5a0d08e6a680558ed74f5dd724427ff5a29b
treebd3d6034c195a32dbe03f5b0f49cca99043e0ce4
parent12e9ade309db51e7ea26be3b4fd5bc6057ddc175
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