From: Nishanth Menon Date: Mon, 30 Jun 2014 15:57:38 +0000 (-0500) Subject: regulator: palmas: Simplify code by not indexing regulator_desc unnecessarily X-Git-Tag: omap-for-v3.17/fixes-against-rc2~156^2~3^6~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429222d00531b348076862ea4fd8cd694bf064a9;p=pandora-kernel.git regulator: palmas: Simplify code by not indexing regulator_desc unnecessarily Palmas regulator needs to full up the regulator_desc based on PMIC and type of regulator. However, we dont need to do desc[id] every time. we can simplify by using a pointer to desc[id] and filling up the parameters. Signed-off-by: Nishanth Menon Tested-by: Stephen Warren Tested-by: Keerthy Signed-off-by: Mark Brown --- Reading git-diff-tree failed