ARM: vexpress/TC2: Convert OPP voltage to uV before storing
authorPunit Agrawal <punit.agrawal@arm.com>
Wed, 19 Mar 2014 12:43:25 +0000 (12:43 +0000)
committerPawel Moll <pawel.moll@arm.com>
Thu, 24 Apr 2014 16:20:50 +0000 (17:20 +0100)
commitcf2e0a73ca9ad376825c013ebaa145608abc27d7
treeb6a4709dca0c7f1be56f183ad4a251b8fb7630bb
parentd08b80373cbb76c9b485b60d49fd3ba82abdf77c
ARM: vexpress/TC2: Convert OPP voltage to uV before storing

The SPC stores voltage in mV while the code assumes it was returning
uV. Convert the returned voltage to uV before storing. Also fix the
comment depicting voltage to uV.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
arch/arm/mach-vexpress/spc.c