Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 10CE4C54EBD for ; Fri, 13 Jan 2023 14:43:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6846785265; Fri, 13 Jan 2023 15:43:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="XpvZATVE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2667780F98; Fri, 13 Jan 2023 15:43:23 +0100 (CET) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A54548529D for ; Fri, 13 Jan 2023 15:43:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82a.google.com with SMTP id s5so14728757qtx.6 for ; Fri, 13 Jan 2023 06:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=tGlE5AcN9DHztI5Y7PDqgYNnQhZHWuINhi8qbTxsEFI=; b=XpvZATVEIaC4wyy8RSpZn5OcmynABHPTPp819dnkCxoElme6I8bndXSZy1QQURcAbn 93eM7smv1HSWDd51dxjw6pFNMTYj/T3TySEVmeV0Ns+8vtBxKEWKr/mXzT7d2gAm3/A6 YDMOoejmTDkbiBv8OFnswtlK0/c/kRy2ZGRyw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=tGlE5AcN9DHztI5Y7PDqgYNnQhZHWuINhi8qbTxsEFI=; b=OaMg+8h/u8S8yVwOldg+R1ume4uSOnhCOMKqc5ExOynkeAfnWmoicxAIrFPdamfx+F c0MWHcDp6CIIZj3jE8pDj8X5TUXxE9V6ezzi5Ee2fyP76ndD1m5Ze1gE4dpYt4sujRWC /q4yGwyzgOaTwM/Us90zS/XptwYjEJ6bLp9iSnMgCPGo9y4vONdMhR8xWzEyyVNnv4Gz pIMbOiLU7mAcNxjdG3Lb4tJaecaErlzf+0xyEqNgKZosgO2WHAIemkcK9iI0Jf/aO6Mu pSP8gH5vxYSgh0jQeUz5Oj+LFVnO6hT4UZEmzy8hdrvA0haUtKOtBPgSBuTtp0c4eB8l OBsw== X-Gm-Message-State: AFqh2kplfJO3RXoEr8iaV/1ZQhnf7bbj2jUVHLeoI5bvc++vp8rkLr+7 vWLUfYIoR3xiTIBVQzAlzvwnzQ== X-Google-Smtp-Source: AMrXdXt281AxUiQaI4hXaDlgYyhXP9PR0WmqF4taAJHVcWfCtEThtp1F6yNKc01JNpK6T2cS1IjA5w== X-Received: by 2002:a05:622a:1e06:b0:3a8:28a4:c4bc with SMTP id br6-20020a05622a1e0600b003a828a4c4bcmr110235827qtb.11.1673620998145; Fri, 13 Jan 2023 06:43:18 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-a538-813d-bada-d144.res6.spectrum.com. [2603:6081:7b00:6400:a538:813d:bada:d144]) by smtp.gmail.com with ESMTPSA id x10-20020ac87a8a000000b003a7eb5baf3csm10540200qtr.69.2023.01.13.06.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 06:43:17 -0800 (PST) Date: Fri, 13 Jan 2023 09:43:15 -0500 From: Tom Rini To: Nikhil M Jain Cc: agust@denx.de, u-boot@lists.denx.de, vigneshr@ti.com, nm@ti.com, devarsht@ti.com, tomba@kernel.org Subject: Re: [PATCH 2/9] drivers: video: simple_panel: make simple panel independent of backlight Message-ID: <20230113144315.GI3787616@bill-the-cat> References: <20230113082927.9524-1-n-jain1@ti.com> <20230113082927.9524-3-n-jain1@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="goZsXHFuzBpHaNGl" Content-Disposition: inline In-Reply-To: <20230113082927.9524-3-n-jain1@ti.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --goZsXHFuzBpHaNGl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 13, 2023 at 01:59:20PM +0530, Nikhil M Jain wrote: > This patch updates the necessary Kconfigs to make simple panel > driver independent of backlight driver and compiling backlight > related code in simple-panel driver conditionally to when user > has set CONFIG_BACKLIGHT. >=20 > Signed-off-by: Nikhil M Jain > --- > drivers/video/Kconfig | 3 +-- > drivers/video/simple_panel.c | 20 +++++++++++++------- > 2 files changed, 14 insertions(+), 9 deletions(-) >=20 > diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig > index c841b99bb3..5030586d9f 100644 > --- a/drivers/video/Kconfig > +++ b/drivers/video/Kconfig > @@ -28,7 +28,6 @@ config VIDEO_LOGO > =20 > config BACKLIGHT > bool "Enable panel backlight uclass support" > - default y > help > This provides backlight uclass driver that enables basic panel > backlight support. Have you made sure this didn't disable / remove code on other platforms? [snip] > @@ -97,8 +101,10 @@ static int simple_panel_probe(struct udevice *dev) > } > =20 > static const struct panel_ops simple_panel_ops =3D { > - .enable_backlight =3D simple_panel_enable_backlight, > - .set_backlight =3D simple_panel_set_backlight, > +#ifdef CONFIG_BACKLIGHT > + .enable_backlight =3D simple_panel_enable_backlight, > + .set_backlight =3D simple_panel_set_backlight, > +#endif > }; This shouldn't get indented more. --=20 Tom --goZsXHFuzBpHaNGl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPBbgMACgkQFHw5/5Y0 tyy9FAv+NAw4ubS0opuRGbic0PCIDhDb3bykMEpn71ALiLHqpsIbNPO+SM9IkYSe sNiqHSqPBB4Z5VhY3G3FIf8mhKPa4lCJvL3AX7kwTWtqFNeu6JdawYQSOzKZFibv g5yICBJfVBfAX07mKUxzU2CE35AfjOUf8Jk9oG9BAObJ0QNXbPqI627YMuRh6arf ht5tU55MNTORVqWq6pCnIQN6znME/CXhRaBHGbg5tGrHZqRtPtWjtVYOsv4hskOM kbLG+/ifVo+tATFjgDJ2L0JMA/ridWyR1y+wu/9jeY6CZngXAwBzxIvuoP6t9nf+ Kpx0EyA/BlGi+H4qiHHYjGXKRjSaSJ3KR1t+j2dKWOXq/k+IljWsm7tADwph/wIM ldtoBLUqVGkLJIc2l1+psZ1+nX8E4ES7eI9fdjhtuUC9yrghVtpWXN5/AC5gYkn3 WT2EoWEMlgiu3SXf3WSdGWJPmd9Xy6FHmoaBdyKC7fgNEWkXYMpmlH60F099hH+n cBG5xc3U =YJyF -----END PGP SIGNATURE----- --goZsXHFuzBpHaNGl--