Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1934736pxb; Fri, 22 Oct 2021 10:22:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySaNF6tZHSHQIxebtT/a5IdYNyRF8BFRARKBBVzxdxUZivxYUXLIdvR7ATT1LVDn0qYVGL X-Received: by 2002:a63:3d0f:: with SMTP id k15mr750332pga.269.1634923332845; Fri, 22 Oct 2021 10:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634923332; cv=none; d=google.com; s=arc-20160816; b=VpJ5uaGFmDELidCfX+DZgyBTt6biBDu8GVwusn4EbRMxKleIW/6p2YFS+U8JikdEVN oMzeYJyINJLuKGxBU9UAn0emyccsvAzJEmGYSHB0Z5pVLHyTEfArpHAjShyyNmeh0Rkn 2pQq1fYiREE4Mn2dCwlhssHuxShhcXratZSM5Em1grC5QurFo8jA3GJ++Qb9OwnoU95C vrHtXgEFQVTDFVlnUPWUrnECJHkdxRi+xEtqyFImTUKuAO10TJ41rUuxtXS+j73LxzDO WAfyqncJs/Cm7tCUsXuBhc3sbXGg0NLxdVwf68O22bI5MsjOFO2bpjRkAYjXtHb9qxpw GijQ== 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=Z4mIXFa4iFtG0/3MwjffVdtreROCML6cO1oSaovl7kw=; b=ujYDA2SUmKCdtET+9JGZUC9IAdmqpoWXZ/z2mvpTPSJgIm8/mAiWcJMr9jrtjfPIit UhAcPznWFQYCe3qVWRN+U7eeMO8e+uEu0juFMcUuPOxpOdBeS2t2L4koLIv/jqhq09AW gVs5wL9B0xiurh/HP0uThaerGUQj+X4et6eTVYVB70m+F2cBNz54NQ0wxE1xq4fzpq8J 7FRNd9cxN5UomevbHlUpfd1no2BMIfwC33lRJ4bgMk2I/aMMnLvemZyjAO0S6dB76ye8 Jfa1CJi+VTpLxyzU5ZJlkAWnfDMXk+wIs7W2K6SjmYKe/waB+AELD9vdLnKRDgAMDZi5 7gsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XOzPRrO+; 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 a10si11671334pfh.36.2021.10.22.10.21.58; Fri, 22 Oct 2021 10:22:12 -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=XOzPRrO+; 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 S233627AbhJVRXT (ORCPT + 99 others); Fri, 22 Oct 2021 13:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233637AbhJVRXQ (ORCPT ); Fri, 22 Oct 2021 13:23:16 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF156C061767 for ; Fri, 22 Oct 2021 10:20:58 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id o204so5848669oih.13 for ; Fri, 22 Oct 2021 10:20:58 -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=Z4mIXFa4iFtG0/3MwjffVdtreROCML6cO1oSaovl7kw=; b=XOzPRrO+Dvgdv3N4+FSroOWjBFonbuNYcEmpzvPV6UGjh253V/4q5E9p8PiTGIBpHC rOILz6x6sIFB9QWjRemrSUyUcvHTStC+p5kboTvkRdIwK4F07acGSnS6RUa+aq0CodDx 04hutEYEf4NNzk0mCmzM3/lVOITwnf8xljYzwwEhF06r5W2jIMvc+Zbh+ixBi/5ZjqIB 9g7HFYayHuHrepHGvKKOXbgp6yWBjT3e/mpUwRbb+43i9U2C37hUvL55kyhWd9gwwDsl I/8YdJzBjaDSHAKBgCLhb64AHVu3+pqDpdrNJjWI30WsyEQw9XefCACVP3kJpw4iaXTF U7pQ== 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=Z4mIXFa4iFtG0/3MwjffVdtreROCML6cO1oSaovl7kw=; b=Zvs5m1ZaUF2UPDQqAYX88J00D2mz9bFcJ6LjXxIUMcCrlof/5nTtP+DzCLLvpzxZdu nQXG+j2vDPHQsFnQYMjhuKQN/SF1gczPG87/I19PtO5JbRJct6rzKznRuvnwrNeDOBFr yiNrDIks+9rPuggO3vj3EcSNeI6tlwRQzRDojVXMFrWAAWtBTSUoZiQruCPcc+AxMiPy CFH1XYD3P1wcW2xEmTMyMGm/2/WY+o03hJC70Gua3MW7ymc0vRRNEIV2toTp6c1yr0GB Xs6w5PhBoOyUw4wU8hc3WV1ZdlEPitg5/REklVPhQAjhWURC/8yBghO6LT4Z6Me5G1wV igUQ== X-Gm-Message-State: AOAM530aINQ5g7VSOTKnqdWVM41Fmc//erlEYh58RuPaP5+ojn7A3PoB w2DVZhDnxe/ywBjyNjqLcyZtiQ== X-Received: by 2002:a05:6808:188a:: with SMTP id bi10mr11093696oib.9.1634923255751; Fri, 22 Oct 2021 10:20:55 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id c37sm1871895otu.36.2021.10.22.10.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Oct 2021 10:20:55 -0700 (PDT) Date: Fri, 22 Oct 2021 10:22:37 -0700 From: Bjorn Andersson To: Satya Priya Cc: Pavel Machek , Rob Herring , Andy Gross , Matthias Kaehlcke , swboyd@chromium.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH V2 2/3] leds: Add pm8350c support to Qualcomm LPG driver Message-ID: References: <1634640531-15813-1-git-send-email-skakit@codeaurora.org> <1634640531-15813-3-git-send-email-skakit@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1634640531-15813-3-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 19 Oct 03:48 PDT 2021, Satya Priya wrote: > From: satya priya > > Add pm8350c compatible and lpg_data to the driver. > > Signed-off-by: satya priya > Reviewed-by: Matthias Kaehlcke > --- > Changes in V2: > - Added const for lpg_channel_data[] struct. > > 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 45ef4ec..99235af 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, No, this should be 4. The fact that you only care about the first channel in your product should be reflected in the dts, not in the driver. Thanks, Bjorn > + .channels = (const struct lpg_channel_data[]) { > + { .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 }, > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >