From: Axel Lin Date: Sun, 7 Sep 2014 10:34:51 +0000 (+0800) Subject: regulator: as3711: Remove unused fields from as3711_regulator_info and as3711_regulator X-Git-Tag: fixes-for-v3.18-merge-window~31^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=192264e0a5473015df28f47241bcdbf6b8c24873;p=pandora-kernel.git regulator: as3711: Remove unused fields from as3711_regulator_info and as3711_regulator The max_uV is not used, so remove it from struct as3711_regulator_info. Current code is using devm_regulator_register(), so we don't need to store *rdev in struct as3711_regulator for clean up. Also clean up AS3711_REG macro to remove _vshift, _min_uV and _max_uV arguments. _vshift is always 0, so remove it. _min_uV and _max_uV are not required, all required settings are set in REGULATOR_LINEAR_RANGE macro. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed