From: Nishanth Menon Date: Mon, 30 Jun 2014 15:57:36 +0000 (-0500) Subject: regulator: palmas: Simplify code by using pointer to palmas_reg_info X-Git-Tag: omap-for-v3.17/fixes-against-rc2~156^2~3^6~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf910b6b7101dae5eabaf2249b427e7698095abd;p=pandora-kernel.git regulator: palmas: Simplify code by using pointer to palmas_reg_info Palmas register information is part of the ddata pointer which is used through out the code by indexing off the driver data array. Instead, just do the indexing once and use the pointer to further reference structure fields. This simplifies code and prevents errors by accessing wrong variables. Signed-off-by: Nishanth Menon Tested-by: Stephen Warren Tested-by: Keerthy Signed-off-by: Mark Brown --- Reading git-diff-tree failed