From patchwork Thu Mar 16 22:08:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9629367 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 E79A260132 for ; Thu, 16 Mar 2017 22:09:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D788828647 for ; Thu, 16 Mar 2017 22:09:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC0E628654; Thu, 16 Mar 2017 22:09:20 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA51128647 for ; Thu, 16 Mar 2017 22:09:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 351CB6EC1D; Thu, 16 Mar 2017 22:09:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7E8296EC1D for ; Thu, 16 Mar 2017 22:09:18 +0000 (UTC) Received: by mail-qk0-x232.google.com with SMTP id y76so51624550qkb.0 for ; Thu, 16 Mar 2017 15:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kpK38SF+bc7ItoX1V7r6uPvIMc36zUMdLDbSR0khAG8=; b=Mu+BHKtrnNAIZG4694nhAakcCN441SbqjViT1udFqmkrpCjzpbe4aYrJNH2IeL4N/u WN7Hc5KwdPNI8AtzrFs0G/5DI8FHl3XoENgvH4Tdj9hiP+57vXI4pKyLMtxqvB8APHsV Rq9GdDGK/9CliZAYl0/CYmMVfZgDUeZGX8r4I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kpK38SF+bc7ItoX1V7r6uPvIMc36zUMdLDbSR0khAG8=; b=ky+eLdFLsvFeXMb/79D/Hw7+oDD4IvOM37Z99pYgDeaMZmhfXhh3kh2XmI4cVWUvTn XuYf84/d9qNnWUmyH34lugwCybbHL8whOkIo4V2nTyoJ6kIlGYHpsRVc1lgilYEOrI5E 9X4bhz2SknI4qty2OCgb2t/dDiLQwbZ8wPH9XhOmTuLnwSlcCxBnw4Jy6nv5wf+mg2Kw 1/RMiv/4AzPB/ucdL7fFlWFSMnGp2qr6u8wstiBkuOz6f7fhKIMazeU7uToEYiaaG3Mo sdJk/35O8l4iiGU+U7lQzDBVy71HuVOY4KDex5UBWRBahtzKfxrPTdA9uReEz+mEqt/6 l0JQ== X-Gm-Message-State: AFeK/H0J3wBPziD0CWdmWdDaBkRrfRu0IH6rr2RXgza7d7a8uiTB/2BFZgKYr0RYIT/0b5yr X-Received: by 10.55.190.129 with SMTP id o123mr11204848qkf.110.1489702157559; Thu, 16 Mar 2017 15:09:17 -0700 (PDT) Received: from boxwood.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id y33sm4585425qta.27.2017.03.16.15.09.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Mar 2017 15:09:16 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [RFC PATCH 2/3] drm/panel: sharp-lq101r1sx01: Use panel-common helpers Date: Thu, 16 Mar 2017 18:08:32 -0400 Message-Id: <20170316220837.17347-3-seanpaul@chromium.org> X-Mailer: git-send-email 2.12.0.367.g23dc2f6d3c-goog In-Reply-To: <20170316220837.17347-1-seanpaul@chromium.org> References: <20170316220837.17347-1-seanpaul@chromium.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Instead of duplicating common code from panel-simple, use the panel-common 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/gpu/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. */ -#include -#include #include #include -#include #include #include @@ -19,17 +16,17 @@ #include