Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755247Ab3GDFOh (ORCPT ); Thu, 4 Jul 2013 01:14:37 -0400 Received: from mail-ie0-f171.google.com ([209.85.223.171]:55020 "EHLO mail-ie0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754207Ab3GDFOg (ORCPT ); Thu, 4 Jul 2013 01:14:36 -0400 MIME-Version: 1.0 In-Reply-To: <20130703180033.GX27646@sirena.org.uk> References: <1372072858-6559-1-git-send-email-yadi.brar@samsung.com> <1372072858-6559-5-git-send-email-yadi.brar@samsung.com> <20130703180033.GX27646@sirena.org.uk> Date: Thu, 4 Jul 2013 10:44:36 +0530 Message-ID: Subject: Re: [PATCH 4/4] regulator: s2mps11: Add device tree support From: Yadwinder Singh Brar To: Mark Brown Cc: Yadwinder Singh Brar , linux-kernel@vger.kernel.org, sbkim73@samsung.com, Liam Girdwood , Samuel Ortiz , Rob Herring , Grant Likely Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 29 On Wed, Jul 3, 2013 at 11:30 PM, Mark Brown wrote: > On Mon, Jun 24, 2013 at 04:50:58PM +0530, Yadwinder Singh Brar wrote: > >> +static void s2mps11_pmic_parse_dt(struct of_regulator_match *rdata, >> + struct s2mps11_info *s2mps11) >> +{ >> + if (!of_find_property(rdata[S2MPS11_BUCK2].of_node, >> + "regulator-ramp-disable", NULL)) >> + s2mps11->buck2_ramp = true; > > This property should be specific to this binding rather than named as a > generic regulator property. It's also a bit odd that setting a property > called "regulator-ramp-disable" causes the flag buckN_ramp to be set to > true - if the ramp is being disabled I'd expect a flag with that name to > be false not true. Seems something isn't named right. Yes, it seems incorrect but in existing code based on pdata, its name like that. If you insist, I can rename it ? as It seems sensible to put "regulator-ramp-disable" as our intension is to do that(by default its always enable). Thanks, Yadwinder -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/