From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH 2/5] regulator: s5m8767: Do not use sec_reg* regmap helpers Date: Tue, 17 Dec 2013 15:03:28 +0000 Message-ID: <20131217150328.GB32283@lee--X1> References: <1387286601-21646-1-git-send-email-k.kozlowski@samsung.com> <1387286601-21646-3-git-send-email-k.kozlowski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <1387286601-21646-3-git-send-email-k.kozlowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org To: Krzysztof Kozlowski Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Rob Landley , Sangbeom Kim , Samuel Ortiz , Liam Girdwood , Mark Brown , Grant Likely , Sachin Kamat , Thomas Abraham , Amit Daniel Kachhap , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Kyungmin Park , Marek Szyprowski List-Id: devicetree@vger.kernel.org On Tue, 17 Dec 2013, Krzysztof Kozlowski wrote: > Replace calls to sec_reg* helpers with direct usage of regmap API. Th= e > sec_reg* helpers are error-prone as they mix u8 with unsigned int and > order of some of parameters (val and mask in sec_reg_update()). >=20 > Also the helpers do not give any way of useful abstraction as they ju= st > call corresponding regmap function. >=20 > This patch replaces: > - sec_reg_read() with regmap_read(), > - sec_reg_write() with regmap_write(), > - sec_reg_update() with regmap_update_bits(). >=20 > Signed-off-by: Krzysztof Kozlowski > Cc: Kyungmin Park > Cc: Marek Szyprowski > --- > drivers/regulator/s5m8767.c | 71 +++++++++++++++++++++++++--------= ---------- > 1 file changed, 41 insertions(+), 30 deletions(-) >=20 Mark, As this is heavily reliant on the previous patch, feel free to take it through the Regulator tree. Acked-by: Lee Jones --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog