Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp748829ybt; Wed, 1 Jul 2020 09:05:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwisbaa2Pc2AgzQK0eGJQgFyAKYolx+H5lOyV6qfkMB9HUgyKL/mi/G4VFONjz/Mo865Is7 X-Received: by 2002:a17:906:c415:: with SMTP id u21mr23285715ejz.45.1593619557522; Wed, 01 Jul 2020 09:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593619557; cv=none; d=google.com; s=arc-20160816; b=vrdLf9UmPWNuFVjpeZYj8oxx5FCKAWdwjsu7rTT+vCO2P5Hgm0UZOspmbBOC30u13B lS95n2KuQ+Sd5xeML7lIKeQMF2P+2tOfA1bMeu4aYdQz7VW2jqdevRfWyMVlYjWpWvFs nyRL95j2B7gI7HPfrEn7evafYNLD5iaadK+Bg8uwLVPu2wmQaP1F7hjliybibqcZS6Zy QbKh80uV5WS41uKswtTcO29uvf4Cyyv+IlO4IEkRjBNRW+Q8XEl3NUgo60oYh3yQOvJp GoBeC4mwW37fkK/dHB3xSR5KMPacbL+kAuCaGg0Fu7jjSEo7ZZrU1VRuNURo8LSoFTEQ v/vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9rGBSvfz3TbSilFHam5KR//81a65LitSqytgUX0HyMw=; b=nz/eJvOuC7Jx1ofME2ypci/5hmvkUh96YreVemNjwv93/RYYqsztQudVUmRnXqUGDw yrg+ARh4UxG7cae7z6lT0j8Pw9j326akredh7Iz6X41DxgwfWRg/GLGSZCb3EZ07MPRC pacQmhRqe997lSh/WgQtken4A3kIUNdhgmYcbe/rxxoAFG0rTjykEhv14rvHPh74EbLq mnDmVdprJtoFwKvFCO8UaJOSm06w3+sd1sKoiUABEqfZ1UaHdsYOGxcXX/0N993y2D+X HtlaqS22y33UyeRrJmyclxbiQRZK2pS/pGaQDNgTXMZneK94Yq0mDEaCWGLeEQiLrQkj zW0A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw23si4018215ejb.231.2020.07.01.09.05.33; Wed, 01 Jul 2020 09:05:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732289AbgGAQC1 (ORCPT + 99 others); Wed, 1 Jul 2020 12:02:27 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:34414 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728534AbgGAQC1 (ORCPT ); Wed, 1 Jul 2020 12:02:27 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 9CCCFFB04; Wed, 1 Jul 2020 18:02:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vPbvHeupN1Nh; Wed, 1 Jul 2020 18:02:23 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 3891B40972; Wed, 1 Jul 2020 18:02:23 +0200 (CEST) Date: Wed, 1 Jul 2020 18:02:23 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Ondrej Jirman Cc: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: Re: [PATCH v6 07/13] drm/panel: st7703: Move code specific to jh057n closer together Message-ID: <20200701160223.GF174356@bogon.m.sigxcpu.org> References: <20200701103126.1512615-1-megous@megous.com> <20200701103126.1512615-8-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200701103126.1512615-8-megous@megous.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Jul 01, 2020 at 12:31:20PM +0200, Ondrej Jirman wrote: > It's better than having it spread around the driver. Reviewed-by: Guido G?nther > > Signed-off-by: Ondrej Jirman > Reviewed-by: Linus Walleij > --- > drivers/gpu/drm/panel/panel-sitronix-st7703.c | 50 +++++++++---------- > 1 file changed, 25 insertions(+), 25 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > index 08cbc316266c..d03aab10cfef 100644 > --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c > +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c > @@ -153,6 +153,31 @@ static int jh057n_init_sequence(struct st7703 *ctx) > return 0; > } > > +static const struct drm_display_mode jh057n00900_mode = { > + .hdisplay = 720, > + .hsync_start = 720 + 90, > + .hsync_end = 720 + 90 + 20, > + .htotal = 720 + 90 + 20 + 20, > + .vdisplay = 1440, > + .vsync_start = 1440 + 20, > + .vsync_end = 1440 + 20 + 4, > + .vtotal = 1440 + 20 + 4 + 12, > + .vrefresh = 60, > + .clock = 75276, > + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, > + .width_mm = 65, > + .height_mm = 130, > +}; > + > +struct st7703_panel_desc jh057n00900_panel_desc = { > + .mode = &jh057n00900_mode, > + .lanes = 4, > + .mode_flags = MIPI_DSI_MODE_VIDEO | > + MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, > + .format = MIPI_DSI_FMT_RGB888, > + .init_sequence = jh057n_init_sequence, > +}; > + > static int st7703_enable(struct drm_panel *panel) > { > struct st7703 *ctx = panel_to_st7703(panel); > @@ -226,31 +251,6 @@ static int st7703_prepare(struct drm_panel *panel) > return ret; > } > > -static const struct drm_display_mode jh057n00900_mode = { > - .hdisplay = 720, > - .hsync_start = 720 + 90, > - .hsync_end = 720 + 90 + 20, > - .htotal = 720 + 90 + 20 + 20, > - .vdisplay = 1440, > - .vsync_start = 1440 + 20, > - .vsync_end = 1440 + 20 + 4, > - .vtotal = 1440 + 20 + 4 + 12, > - .vrefresh = 60, > - .clock = 75276, > - .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, > - .width_mm = 65, > - .height_mm = 130, > -}; > - > -struct st7703_panel_desc jh057n00900_panel_desc = { > - .mode = &jh057n00900_mode, > - .lanes = 4, > - .mode_flags = MIPI_DSI_MODE_VIDEO | > - MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, > - .format = MIPI_DSI_FMT_RGB888, > - .init_sequence = jh057n_init_sequence, > -}; > - > static int st7703_get_modes(struct drm_panel *panel, > struct drm_connector *connector) > { > -- > 2.27.0 >