Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp774488pxb; Wed, 8 Sep 2021 12:02:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLOIkEjHhmIZaAfUD+fo+uDy3X2gKGMYz7q3S7aPqry7feiQAYZb5kmIPSNLxF1KGFGDlD X-Received: by 2002:a17:907:2a85:: with SMTP id fl5mr1394144ejc.91.1631127748205; Wed, 08 Sep 2021 12:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631127748; cv=none; d=google.com; s=arc-20160816; b=QbtK8pAZ/Z2Ftr53NoHJuJzxcLZvKzQZaa/h0Ts7+xAhY9nwmX29HEIgiJRLuLdHLj MtMCOx/pPfmpyh+pgJZFv+gwX8JlI4os+kLbvB6h7RK/r9UfXJS9OlvPuI0Osqoqco73 tD+agXKPC46xx5N+UFZnakVzq8fISMUJa5Uf6DE4Se/kPAea4pMdFtnE70MRdAxugiBv qWqbyLi/igo/RbYSgu4DJ6EHmrgJ8YOFw5Lf85H4oBCquF+xoe5C/CEWOEpdjNzM1fJo fGG3s832eUDe/KaX4ohc0C9vfM4mWE6atXioxIAhNyLe70gnA1cBjlUUAukSySAf4nUU SCFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6LGhLlyGfDieC90krK66I/Mdf34zEcB4tJ81qPREmoM=; b=YYHEEUYX89Vmb8Tum2kgGQHlorRgtglt10lN+C7C6jnSat/sLUWXGV3XUMnjMwm3Bz WVj6b83aICMF7oMuysebpgGui7q0cmZAC108etVaUoz7yjrNCILA9uEOyi3FCQ8fnvgv Ij3VpsrJeWgCwIQhNK7vVFsDH1UF/Evncz65zYyryatK6nMqFADQ+DkeN9l3YCRK6DU+ Cww2gEK0M8oL6/fhn16ZhJ/l/gGlNxJGxiNNEutBmROA7/Pj4T8aVfK87RPXqpP6bXeo DA5veVf8SS6I3Lc2XFoUJ2I3iG83WDUxv2evQl3W+zvJw6WMveANc/Xoggd1EJMI/VHC 9NoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c80CLUoD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si3015355edw.597.2021.09.08.12.02.00; Wed, 08 Sep 2021 12:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c80CLUoD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233140AbhIHRLe (ORCPT + 99 others); Wed, 8 Sep 2021 13:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbhIHRLd (ORCPT ); Wed, 8 Sep 2021 13:11:33 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB386C061575 for ; Wed, 8 Sep 2021 10:10:25 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id g66-20020a9d12c8000000b0051aeba607f1so3851657otg.11 for ; Wed, 08 Sep 2021 10:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6LGhLlyGfDieC90krK66I/Mdf34zEcB4tJ81qPREmoM=; b=c80CLUoDExwws380FL+IbjjQl1U/Fmd7uo4QCdYXq8THT//hiA5ubYgIx3oVA8uv17 1UbavbcuMaE3fhu9iiLkOVDoHTYqlw6AllaFRb+gLvdKshd/L3D91qvCLdgj7sjHVZdS /cEyQTBgIulkYolYrZ6wcrK/U9PFPHKR3kmta6XzWFopeO5dYQK+vVgQoPjrctKskzlR AlI256UVnHU04mZMt4e2Hb/opWWWN7OVfI58PYzxJV8khac9vtAm9PJMt4Kvo6owlhag 2ekYSEYUZRz2iOL/YR/BXfFXlL568R/Knw/nXb3aRGoEZWojF/3wwR0lJWmxfcdoRke0 gwzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6LGhLlyGfDieC90krK66I/Mdf34zEcB4tJ81qPREmoM=; b=hwQld4Mcn+DwJ1dRnDGPaVE7fPpWGy6DB/tY97tgGVBgd1Z0h6SJLT2UBa8aDpqkFB jwYTA1s6dusqGp+RIF6nLId7TGUSfVRzhvJyDdz5CRO5EtcB5mbUVXOfcFV3NLMoaZLR hxxJ3pPztCP4gRdt3VtSPkTCMWEDaTZ7N38CYmN95pj6oi4be/goX/Z0Fd490wEb3rf2 K/J0v8Mr52M1BfVVVHQOmj5i5RoiJ2VlhExLz1k8akIbKsesd1g5bydxVAc6siKLuZNI 7QQjhWMlaW4K8PwmJy/KeyYI6mrt7gd6uzyRGjwW6lY5HJu7QNtYwO68Nh0O7hf6QpaM OvAw== X-Gm-Message-State: AOAM532m3ZzQI9u9l2YOugGnJcFFwKPCqE5M78uZFEKNh1kVLzQQn0o5 SXUvH6CPC87yBtOKjkbTZePDYg== X-Received: by 2002:a05:6830:3114:: with SMTP id b20mr4149958ots.17.1631121025099; Wed, 08 Sep 2021 10:10:25 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id z78sm551229ooa.29.2021.09.08.10.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 10:10:24 -0700 (PDT) Date: Wed, 8 Sep 2021 10:11:23 -0700 From: Bjorn Andersson To: skakit@codeaurora.org Cc: Stephen Boyd , Andy Gross , Pavel Machek , Rob Herring , mka@chromium.org, kgunda@codeaurora.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 2/3] leds: Add pm8350c support to Qualcomm LPG driver Message-ID: References: <1630924867-4663-1-git-send-email-skakit@codeaurora.org> <1630924867-4663-3-git-send-email-skakit@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 08 Sep 02:17 PDT 2021, skakit@codeaurora.org wrote: > On 2021-09-08 01:50, Stephen Boyd wrote: > > Quoting satya priya (2021-09-06 03:41:06) > > > Add pm8350c compatible and lpg_data to the driver. > > > > > > Signed-off-by: satya priya > > > --- > > > drivers/leds/rgb/leds-qcom-lpg.c | 10 ++++++++++ > > > 1 file changed, 10 insertions(+) > > > > > > diff --git a/drivers/leds/rgb/leds-qcom-lpg.c > > > b/drivers/leds/rgb/leds-qcom-lpg.c > > > index 327e81a..6ee80d6 100644 > > > --- a/drivers/leds/rgb/leds-qcom-lpg.c > > > +++ b/drivers/leds/rgb/leds-qcom-lpg.c > > > @@ -1275,9 +1275,19 @@ static const struct lpg_data pm8150l_lpg_data > > > = { > > > }, > > > }; > > > > > > +static const struct lpg_data pm8350c_pwm_data = { > > > + .pwm_9bit_mask = BIT(2), > > > + > > > + .num_channels = 1, > > > + .channels = (struct lpg_channel_data[]) { > > > > Can this be const struct lpg_channel_data? I think that will move it to > > rodata which is only a good thing. > > > > I agree. > @Bjorn, can we make it const struct? > I like it and have updated the driver patches accordingly. Seems like I still have a couple of more comments from Uwe left to resolve on v9 of the driver, I'll fix those up and post the driver again. Thanks, Bjorn > > > + { .base = 0xeb00 }, > > > + }, > > > +}; > > > + > > > static const struct of_device_id lpg_of_table[] = { > > > { .compatible = "qcom,pm8150b-lpg", .data = > > > &pm8150b_lpg_data }, > > > { .compatible = "qcom,pm8150l-lpg", .data = > > > &pm8150l_lpg_data }, > > > + { .compatible = "qcom,pm8350c-pwm", .data = > > > &pm8350c_pwm_data }, > > > { .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data }, > > > { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data }, > > > { .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data },