From: Lars-Peter Clausen Date: Fri, 14 Jun 2013 15:58:00 +0000 (+0100) Subject: staging:iio:ad7291: Rework regulator handling X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~165^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1df9d1d4a1cb666042c3217aef6a6dc38eed1de0;p=pandora-kernel.git staging:iio:ad7291: Rework regulator handling Add platform_data for the driver which allows to specify whether an external reference voltage is used or not. It is not possible to use the return value of regulator_get() for this since the regulator framework is able to return a dummy regulator in case no regulator has been specified. In this case the driver will always get a valid regulator, no matter if it has been specified or not. Also make the regulator non-optional if platform_data states that an external reference voltage should be used. Signed-off-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed