From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304Ab3LQPDj (ORCPT ); Tue, 17 Dec 2013 10:03:39 -0500 Received: from mail-wg0-f52.google.com ([74.125.82.52]:35818 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754133Ab3LQPDf (ORCPT ); Tue, 17 Dec 2013 10:03:35 -0500 Date: Tue, 17 Dec 2013 15:03:28 +0000 From: Lee Jones 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 Subject: Re: [PATCH 2/5] regulator: s5m8767: Do not use sec_reg* regmap helpers 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1387286601-21646-3-git-send-email-k.kozlowski@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Dec 2013, Krzysztof Kozlowski wrote: > Replace calls to sec_reg* helpers with direct usage of regmap API. The > 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()). > > Also the helpers do not give any way of useful abstraction as they just > call corresponding regmap function. > > This patch replaces: > - sec_reg_read() with regmap_read(), > - sec_reg_write() with regmap_write(), > - sec_reg_update() with regmap_update_bits(). > > Signed-off-by: Krzysztof Kozlowski > Cc: Kyungmin Park > Cc: Marek Szyprowski > --- > drivers/regulator/s5m8767.c | 71 +++++++++++++++++++++++++------------------ > 1 file changed, 41 insertions(+), 30 deletions(-) > Mark, As this is heavily reliant on the previous patch, feel free to take it through the Regulator tree. Acked-by: Lee Jones -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog