From patchwork Sat Jul 29 19:17:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 9870103 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 321126035E for ; Sat, 29 Jul 2017 19:21:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21D4127D29 for ; Sat, 29 Jul 2017 19:21:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14FBE28789; Sat, 29 Jul 2017 19:21:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7053127D29 for ; Sat, 29 Jul 2017 19:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lifQ2tONHUyVkn87GjwnN7Wch3lPCPtOYv2NaFLcbYE=; b=MsjSaEXSxkV4u/KXKq4kxbx94M 7Gy9ZmszihBL7QqgiFGk4FFM34XA7OguhVHaBl2pE+00zfwYtacYafsVh/UpfaErHwGR8mqElx9+/ 1LQxJwQWxp/B5KJVoz1N4MSRwkLgj1lKQSFLc/7A/P8JH4Uak5bwdwtLrc/Pp4S2mEhmLNYPn9Kt8 7sVBmHMoCoaZG/8cYAw3KzfWRS0fBiKN/sqiE/a1eG76Smj8mw4F2zbjUp9pFjs4IX1gxG1Cn1B1K ISgzAFvNhGEyWCEawfLbr0iKUqE6RbD539yl9JpHI/BofKC/sTUU3KoZmPsOj2kDFYES0gRJZ8QqS 8hVRgmCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dbXJ7-0008B9-Gq; Sat, 29 Jul 2017 19:21:49 +0000 Received: from vern.gendns.com ([206.190.152.46]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dbXGt-0005Te-78 for linux-arm-kernel@lists.infradead.org; Sat, 29 Jul 2017 19:19:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=exxCz1j3saRHDJfANIK0OsJtyoRVH5wp/Fwa80QY0hQ=; b=DDgur18fK5M4H5Dqb7YIXqkBv oF0SLyY9gV3w5+Zc2AHgjCnlfsqJDOB3w3wrlFRGeDb1w+7qRYJIBZhZxQFgklJON7+hSdpK1tSFT Fq/md9AR8jyBBWdg9Q9ADyW/vFpWlDbVZkG8K+/XtMPrP8FAAFnSg37GsS/TtD+/LN4J2LyrkBVp2 2sSBDFSkI/MG3AewdXN48lZqrRVZ85xKcgjwks/gzT25350JA1kSkowTZ6i/UXkfNWEgoyFI1Q6re k70X59CeWC+nJX+1VHNoKKUundsDRUMG0x7+M44us4jbZp4LIIZb0YCDLHaqLzYzYNjc30KVYbV1V QvFint0WQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:58148 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.89) (envelope-from ) id 1dbXCy-000DrP-HK; Sat, 29 Jul 2017 15:15:28 -0400 From: David Lechner To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH 4/6] drm/tinydrm: mipi-panel: refactor to use driver id Date: Sat, 29 Jul 2017 14:17:48 -0500 Message-Id: <1501355870-13960-5-git-send-email-david@lechnology.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501355870-13960-1-git-send-email-david@lechnology.com> References: <1501355870-13960-1-git-send-email-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170729_121931_373279_8D1FDF0F X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-fbdev@vger.kernel.org, David Lechner , Kevin Hilman , David Airlie , Sekhar Nori , linux-kernel@vger.kernel.org, Rob Herring , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This refactors the mipi-panel module to use the driver id for panel-specific data. This is in preparation for adding additional panels. Signed-off-by: David Lechner --- drivers/gpu/drm/tinydrm/mipi-panel.c | 40 ++++++++++++++++++++++++++++-------- include/drm/tinydrm/mipi-dbi.h | 2 ++ 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/tinydrm/mipi-panel.c b/drivers/gpu/drm/tinydrm/mipi-panel.c index 64344f0..8aa1d8e 100644 --- a/drivers/gpu/drm/tinydrm/mipi-panel.c +++ b/drivers/gpu/drm/tinydrm/mipi-panel.c @@ -21,7 +21,18 @@ #include #include