From cf910b6b7101dae5eabaf2249b427e7698095abd Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Mon, 30 Jun 2014 10:57:36 -0500 Subject: [PATCH] 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-format-patch failed