From: Krzysztof Kozlowski Date: Mon, 5 Jan 2015 11:48:42 +0000 (+0100) Subject: regulator: Allow parsing custom properties when using simplified DT parsing X-Git-Tag: fixes-v4.0-rc1~183^2~2^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa21a0dfe6915dc85953b5d40ea9dae5fdf205f;p=pandora-kernel.git regulator: Allow parsing custom properties when using simplified DT parsing When drivers use simplified DT parsing method (they provide 'regulator_desc.of_match') they still may want to parse custom properties for some of the regulators. For example some of the regulators support GPIO enable control. Add a driver-supplied callback for such case. This way the regulator core parses common bindings offloading a lot of code from drivers and still custom properties may be used. The callback, called for each parsed regulator, may modify the 'regulator_config' initially passed to regulator_register(). Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- Reading git-diff-tree failed