regulator: core: provide fixed voltage in desc for single voltage rail
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 11 Sep 2013 09:18:41 +0000 (14:18 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:42:01 +0000 (17:42 -0700)
commit7fccc4e97883dd5ae16f5aed506165aa76e35f2e
treedc2d9d3248ac9a2b2dc242126e13a0392a292592
parenta24b9921498624e8a2395597f6649daf98373cfe
regulator: core: provide fixed voltage in desc for single voltage rail

If given rail has the single voltage (n_voltages = 1) then provide the
rail voltage through regulator descriptor so that core can use this
value for finding voltage.

This will avoid the implementation of the callback for get_voltage() or
list_voltage() callback on regulator driver.

Change-Id: Ia148194cde37df2e5b1447e8c550072d8738af71
signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/273021
GVS: Gerrit_Virtual_Submit
drivers/regulator/core.c
include/linux/regulator/driver.h