Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp45065ima; Thu, 31 Jan 2019 12:08:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN7A0Bxgz82+sPtzShIFuZ8NlFi1Wvbn/IB4Yd8/PIGr47L5JAanu2LMilkW+YoIFKTZNXDD X-Received: by 2002:a63:5346:: with SMTP id t6mr33258984pgl.40.1548965327746; Thu, 31 Jan 2019 12:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548965327; cv=none; d=google.com; s=arc-20160816; b=c0zhaHuSWe2wKH4EJ0uVsyx2PpvA4obdftCA+VCvHoezJSq/cqkOx7Ed8O7/dH7b5X Sat2NQ0771ucsJqIfd0nUUBJmMCdX+3eY5B3cTd5ojiPr0F75WQIpukeYv2Odmz/xLzs OLJxSHBAXGOS3XwVboHiDFOkhRInLAZwzGsKTIAAVpb2FFEo/kAbmcQ9BW7DgC0EeAgM MCIYmu4X8TKkV/jeGfbGWDBe0Pkt3wAfCZhBbKZFdMkWmBj/cSM4Xv8t1mC+ckn2utse eXPV/Zkymw1LjuXMy8n/th5WC6xHCxhS0TIYLptyv1k0ZUJeoEqSZ7eEuOOm1OUQfFwP EtBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JqGyq9owmf0ny2t5ItEDue6rqJ3d7AFmxUpUgXeaeQE=; b=VJDb/MgzkUL1fin4P+SBUBXYPOlIoxhfTM4MCQ7OKQsmVzMugmZeBm8fQGXsbptVdr v2CY0xeYPQpeisFHgatQJZylaFUIshdNqsm5Bmd6DMSuSR1cuka6JJ3KImdD253ZmHwN RY9HNvxC4vnBqKSZx9XxNCbyEOyrpjXiHmfeSHVZI+DkmiL67x4JMIboljO1RR/8Wy1A 7jMxYY2+DzIBrnJOpn4M62sdyQKXm940m6QRBG0ok0HbbPHxgyBOV4sRBxM07m2k2cE5 L50NxRSyp3kh22W9T/MwdJu1MGXZH0QpB3TIbopHTySVsbmfXHbeXptQDby/qoaLdaL4 gcug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=askHYVdz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si4980819pgl.16.2019.01.31.12.08.31; Thu, 31 Jan 2019 12:08:47 -0800 (PST) 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=@poorly.run header.s=google header.b=askHYVdz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727644AbfAaUH0 (ORCPT + 99 others); Thu, 31 Jan 2019 15:07:26 -0500 Received: from mail-yb1-f195.google.com ([209.85.219.195]:45026 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbfAaUHZ (ORCPT ); Thu, 31 Jan 2019 15:07:25 -0500 Received: by mail-yb1-f195.google.com with SMTP id k189so1815696yba.11 for ; Thu, 31 Jan 2019 12:07:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JqGyq9owmf0ny2t5ItEDue6rqJ3d7AFmxUpUgXeaeQE=; b=askHYVdzGJrAKR3bRpLPDCZ3CNGfRDxDfJCDDcS18y7MDeI8irtKLUAhIUYc10x71J CEB9JI3THJ/SSP89xWonUeEciauPfWPkeYjfKc8ymUTBZp/e2uFAhBqciFg1e19Xyl88 wkHEF/37BaFzLJ/QPM7o0xd0WdnvxLI0ANfhdK3POkYtvgM4gK2U5iaC5/t3lb1hK0ql eoc9GixdjpMVYCvPfnjTbsVqJQvdlDeFzcPXelEWxd8fjQfhDDpcOwYuCDNYmkWjzBEr 0p/TBiGt+qDO7W6cT6a4Itc8LkkYf0MaDrkF0J6BWzsUwEOaaFbBUuJonCXG/Y5ebkTO ll9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JqGyq9owmf0ny2t5ItEDue6rqJ3d7AFmxUpUgXeaeQE=; b=b7z+YIzAd8md8Skya61Z7m3ryIaORzqFsA1qntn/yHlqFENFW1lCcFlzSiTgn6C+QU VZkmtKdaP95odpjFXhCO1OjMvHecdJW6EoP9rRLxIgxpA9wwUI9NcHQPYzEaoIeviPq7 t09HQuXzWUyS54wk0aWNFcE8EMPPQfja+LVI/eLUEyiFlCC3fkB6s37mnCmKcnO7niyo PgNTMsd0+p/1PpZXvYsDo4y+y3UM9DjFllVVo+Z2sBiQ4NVs0hixO3CkV6VWqW6KP/Vn YnnaNLAXiwE31QjmveIxMmENxRlOOh356Zo8zGKJRKtAKBP6xQNOelgbAFz93k7Ch3fe zxTA== X-Gm-Message-State: AJcUukczKvZZMO5pwXJwOK15+CIHlZJJ8FgqmfXGW+CnNYCpvS90BoXu UU+6uuflLmDbWAF+y+uPuiYo4w== X-Received: by 2002:a25:a3c1:: with SMTP id e59mr34209373ybi.96.1548965244384; Thu, 31 Jan 2019 12:07:24 -0800 (PST) Received: from localhost ([2620:0:1013:11:89c6:2139:5435:371d]) by smtp.gmail.com with ESMTPSA id b144sm3297343ywa.33.2019.01.31.12.07.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Jan 2019 12:07:23 -0800 (PST) Date: Thu, 31 Jan 2019 15:07:23 -0500 From: Sean Paul To: Sam Ravnborg Cc: Thierry Reding , dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Linus Walleij , Stefan Mavrodiev , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/19] drm/panel: drmP.h removal and DRM_DEV* Message-ID: <20190131200723.GZ114153@art_vandelay> References: <20190131192619.9763-1-sam@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190131192619.9763-1-sam@ravnborg.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 08:26:00PM +0100, Sam Ravnborg wrote: > Hi Thierry et al. > > While reviewing a number of new panel drivers there was a > certain pattern in the feedback: > - the now deprecated drmP.h file was used > - dev_err() and friends was used > > This patch-set address the above items in the panel > drivers in drm/panel/ > The hope is that new panel drivers will no longer inherit bad > patterns from the existing drivers. > > The use of DRM_DEV* is not accepted by everyone, so this conversion > was split up in smaller bits. > If some drivers do not want to use DRM_DEV* then just drop the relevant patch. > > All patches are build tested on x86/arm. > > The DRM_DEV* patches depends on the drmP.h removal. > > One extra patch sneaked in "panel-innolux: drop unused variable" > This is a fix for an unused variable and was added to flush my panel patches. > > Note: Waiting for key storage (for gpg key) before I start the process getting > commit rights, so I rely on someone else (Thierry?) to commit this. > > Patches are made on top of drm-misc-next as of a few days ago. > > Comments welcome! Hey Sam, Thanks for the patchset, this will make dmesg grepping easier! One comment, and you're going to hate me for it: Why use DRM_DEV* instead of DRM_*? When I introduced DRM_DEV, it was to cover the case where there are multiple instances of the same driver (ie: dual-channel mipi, multiple crtcs, etc). I suppose that _could_ happen in the panel space, but it seems more unlikely than not. It's quite possible I'm overthinking this, but just something I figured I would point out. Either way, I think this is an improvement over dev_*. Sean > > Sam > > Sam Ravnborg (19): > drm/panel: drop drmP.h usage > drm/panel: panel-innolux: drop unused variable > drm/panel: samsung: use DRM_DEV* > drm/panel: arm-versatile: use DRM_DEV* > drm/panel: truly: use DRM_DEV* > drm/panel: sitronix: use DRM_DEV* > drm/panel: ilitek: use DRM_DEV* > drm/panel: innolux: use DRM_DEV* > drm/panel: jdi: use DRM_DEV* > drm/panel: lg: use DRM_DEV* > drm/panel: lvds: use DRM_DEV* > drm/panel: olimex: use DRM_DEV* > drm/panel: orisetech: use DRM_DEV* > drm/panel: panasonic: use DRM_DEV* > drm/panel: raspberrypi: use DRM_DEV* > drm/panel: raydium: use DRM_DEV* > drm/panel: seiko: use DRM_DEV* > drm/panel: sharp: use DRM_DEV* > drm/panel: simple: use DRM_DEV* > > drivers/gpu/drm/panel/panel-arm-versatile.c | 21 +++-- > drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 97 ++++++++++++---------- > drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 14 ++-- > drivers/gpu/drm/panel/panel-innolux-p079zca.c | 17 ++-- > drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 66 ++++++++------- > drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c | 4 +- > drivers/gpu/drm/panel/panel-lg-lg4573.c | 25 +++--- > drivers/gpu/drm/panel/panel-lvds.c | 39 +++++---- > drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c | 28 ++++--- > drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 15 ++-- > .../gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 19 +++-- > .../gpu/drm/panel/panel-raspberrypi-touchscreen.c | 25 +++--- > drivers/gpu/drm/panel/panel-raydium-rm68200.c | 11 ++- > drivers/gpu/drm/panel/panel-samsung-ld9040.c | 18 ++-- > drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 21 +++-- > drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c | 15 ++-- > drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c | 32 ++++--- > drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 18 ++-- > drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 66 ++++++++++----- > drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 27 +++--- > drivers/gpu/drm/panel/panel-simple.c | 22 +++-- > drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 16 ++-- > drivers/gpu/drm/panel/panel-truly-nt35597.c | 10 ++- > 23 files changed, 375 insertions(+), 251 deletions(-) -- Sean Paul, Software Engineer, Google / Chromium OS