Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8456481ybn; Tue, 1 Oct 2019 08:21:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZItiZFmPdY8YCglb52nrLKvoE5g6xauFCK15Ky5sV6TR0zsAcvdp4fZ/LUh204WSW08h3 X-Received: by 2002:a17:906:7687:: with SMTP id o7mr24808841ejm.213.1569943303015; Tue, 01 Oct 2019 08:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569943303; cv=none; d=google.com; s=arc-20160816; b=Dm0XzpWVyzecLpqMcjUFnD3NAHfNxEX7VBHHH+xdUp96Ykoq7BVHGi+i/yj70UKwWs HAZedyzJGurwHwZZw8uRmNiwOXE4yEwJQPippX92wGSqWnI5VJcJbIMOGAFqU0sr0luK 0mpjND5HahN24rZaKVOFZX5H7Ds78crYczDkrNTJhihrXFFtU+80eQraFKntIelX2s4Q +D3CaiVndQaMnk+LKXcUE66Akb1RdVI9sREYubplntmoZQp1gP85Zd8oHam3juvpGpke wVr6gdXKK0xH7f2YPHZeBBuX25En0dZ1ant8H4cMKqYx0KB49lK3OgscqUDru09cwv9x cOtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=mYUdVtpTVwCAKDqOu/gzrxlPJtwVfw4kTjUjOPGBBwI=; b=Qf1mYTRDHd3qKZ9rWFnTyJzCdOptU0nasH95v6iJwqwlR+zh3KJFKExio6McSo2jrp 7qWLXhTFUNdo2xm7arpMhXId/SZrUgMdLTdLT+swG+5Qut64KuMZ2QC4LevB7cjvdkad ygsHTxNvMBohxOzrGJb96VTZRW91sEHrlkcVimjHHC53X404q8mCBPc+ats5O2v5IhgE EC/17BOeyF515CixHA9K49I8haP/oBd8IBmc1XWVVbHeXaohrJorMLgWyNgH6ZSgAcSb lzkzJ4CQhv1Wqq6HzhCdX6kyF31XDF/G7lQgo9bl54NfFCYyAwFNovPJ0isc+9YyVHXQ wwSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vgVjgSmM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f29si9582632ejj.110.2019.10.01.08.21.18; Tue, 01 Oct 2019 08:21:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vgVjgSmM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389541AbfJAPRy (ORCPT + 99 others); Tue, 1 Oct 2019 11:17:54 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52544 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727185AbfJAPRy (ORCPT ); Tue, 1 Oct 2019 11:17:54 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x91FHd6G012908; Tue, 1 Oct 2019 10:17:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569943059; bh=mYUdVtpTVwCAKDqOu/gzrxlPJtwVfw4kTjUjOPGBBwI=; h=Subject:To:References:From:Date:In-Reply-To; b=vgVjgSmM4Fm9w2oqiQFOOZO20eOMLlmf2fpPWhTk4SB6lLT6cXWfq0Z6zuuYfKhb9 WJcvCpx5oSZRqK2kWQ7PTEZWd82IgRDhabn5MBGNjzDlHvmLVVdbTmmHjMnBeKbxqw yXchTeVsv4hWw2aRN9OXYzqf2lbVnB42ync3zMWA= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x91FHdhi031997 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Oct 2019 10:17:39 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 1 Oct 2019 10:17:28 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 1 Oct 2019 10:17:29 -0500 Received: from [10.250.65.13] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x91FHceg051485; Tue, 1 Oct 2019 10:17:38 -0500 Subject: Re: [PATCH V6 5/8] backlight: qcom-wled: Restructure the driver for WLED3 To: Kiran Gunda , , , , , , , , , , , , , , Andy Gross , , References: <1569825553-26039-1-git-send-email-kgunda@codeaurora.org> <1569825553-26039-6-git-send-email-kgunda@codeaurora.org> From: Dan Murphy Message-ID: <6f50ea19-f320-b4e6-f269-4d1e2189fa77@ti.com> Date: Tue, 1 Oct 2019 10:17:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1569825553-26039-6-git-send-email-kgunda@codeaurora.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kiran On 9/30/19 1:39 AM, Kiran Gunda wrote: > Restructure the driver to add the support for new WLED > peripherals. > > Signed-off-by: Kiran Gunda > Acked-by: Daniel Thompson > --- > drivers/video/backlight/qcom-wled.c | 395 ++++++++++++++++++++++-------------- > 1 file changed, 245 insertions(+), 150 deletions(-) > > diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c > index f191242..740f1b6 100644 > --- a/drivers/video/backlight/qcom-wled.c > +++ b/drivers/video/backlight/qcom-wled.c > @@ -7,59 +7,71 @@ > #include > #include > #include > +#include > #include > > /* From DT binding */ > +#define WLED_MAX_STRINGS 4 > + > #define WLED_DEFAULT_BRIGHTNESS 2048 > > -#define WLED3_SINK_REG_BRIGHT_MAX 0xFFF > -#define WLED3_CTRL_REG_VAL_BASE 0x40 > +#define WLED_SINK_REG_BRIGHT_MAX 0xFFF Why did you change some of these again? Can you just change it to the final #define in patch 4/8? Dan