From: Axel Lin Date: Thu, 29 Nov 2012 05:19:43 +0000 (+0800) Subject: regulator: max1586: Implement get_voltage_sel callback X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~35^2~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efd9dfecbf19a7a28f29b1142c07ba8327f2c8a;p=pandora-kernel.git regulator: max1586: Implement get_voltage_sel callback This is required since commit f7df20ec32 "regulator: core: Use list_voltage() to read single voltage regulators", otherwise _regulator_get_voltage returns rdev->desc->ops->list_voltage(rdev, 0). The Maxim 1586 controls V3 and V6 voltages, but offers no way of reading back the set up value. Thus this patch caches the setting when setting new voltage. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed