From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: [RFC PATCH 2/3] drm/panel: sharp-lq101r1sx01: Use panel-common helpers Date: Tue, 21 Mar 2017 14:06:26 -0700 Message-ID: <87poha1grx.fsf@eliezer.anholt.net> References: <20170316220837.17347-1-seanpaul@chromium.org> <20170316220837.17347-3-seanpaul@chromium.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0712464294==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id E36556E1A1 for ; Tue, 21 Mar 2017 21:06:30 +0000 (UTC) In-Reply-To: <20170316220837.17347-3-seanpaul@chromium.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Sean Paul , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0712464294== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sean Paul writes: > Instead of duplicating common code from panel-simple, use the panel-commo= n helpers. > > Signed-off-by: Sean Paul > --- > drivers/gpu/drm/panel/Kconfig | 1 + > drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 79 +++++++------------= ------ > 2 files changed, 24 insertions(+), 56 deletions(-) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index be8590724042..98db78d22a13 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -73,6 +73,7 @@ config DRM_PANEL_SHARP_LQ101R1SX01 > depends on OF > depends on DRM_MIPI_DSI > depends on BACKLIGHT_CLASS_DEVICE > + select DRM_PANEL_COMMON > help > Say Y here if you want to enable support for Sharp LQ101R1SX01 > TFT-LCD modules. The panel has a 2560x1600 resolution and uses > diff --git a/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c b/drivers/gp= u/drm/panel/panel-sharp-lq101r1sx01.c > index 3cce3ca19601..fb2bf67449ab 100644 > --- a/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c > +++ b/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c > @@ -6,11 +6,8 @@ > * published by the Free Software Foundation. > */ >=20=20 > -#include > -#include > #include > #include > -#include >=20=20 > #include > #include > @@ -19,17 +16,17 @@ >=20=20 > #include