From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbaBGKmq (ORCPT ); Fri, 7 Feb 2014 05:42:46 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:45418 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbaBGKmp (ORCPT ); Fri, 7 Feb 2014 05:42:45 -0500 Date: Fri, 7 Feb 2014 10:42:38 +0000 From: Lee Jones To: Krzysztof Kozlowski Cc: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Mark Brown , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marek Szyprowski , Bartlomiej Zolnierkiewicz , Kyungmin Park , Dmitry Eremin-Solenikov , David Woodhouse , Jenny Tc Subject: Re: [PATCH v2 14/15] charger: max14577: Configure battery-dependent settings from DTS Message-ID: <20140207104238.GH14727@lee--X1> References: <1391767487-10017-1-git-send-email-k.kozlowski@samsung.com> <1391767487-10017-15-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: <1391767487-10017-15-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 > Remove hard-coded values for: > - Fast Charge current, > - End Of Charge current, > - Fast Charge timer, > - Overvoltage Protection Threshold, > - Battery Constant Voltage, > and use DTS to configure them. This allows using the max14577 charger > driver with different batteries. > > Now the charger driver requires valid configuration data from DTS. In > case of wrong configuration data it fails during probe. Patch adds > of_compatible to the charger mfd cell in MFD driver core. > > Signed-off-by: Krzysztof Kozlowski I already acked the MFD parts of this. Or has the patch changed? > Cc: Kyungmin Park > Cc: Marek Szyprowski > Cc: Dmitry Eremin-Solenikov > Cc: David Woodhouse > Cc: Jenny Tc > --- > drivers/mfd/max14577.c | 5 +- > drivers/power/max14577_charger.c | 234 +++++++++++++++++++++++++++++----- > include/linux/mfd/max14577-private.h | 10 ++ > include/linux/mfd/max14577.h | 8 ++ > 4 files changed, 227 insertions(+), 30 deletions(-) -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog