From patchwork Thu Mar 16 22:08:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9629369 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 D699C60132 for ; Thu, 16 Mar 2017 22:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C762828647 for ; Thu, 16 Mar 2017 22:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC3D328654; Thu, 16 Mar 2017 22:09:30 +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 34EAC28647 for ; Thu, 16 Mar 2017 22:09:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BE856EC0F; Thu, 16 Mar 2017 22:09:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id D23A36EC0F for ; Thu, 16 Mar 2017 22:09:27 +0000 (UTC) Received: by mail-qt0-x233.google.com with SMTP id x35so49779541qtc.2 for ; Thu, 16 Mar 2017 15:09:27 -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=ZyVK0A8BcB+qozmnN2C8BxkGqHTGLJ3XaFZtDYHRIGw=; b=WCbKdmes/4DdoH9rbDlz1xcePbo+pVZiTyZRuNn+HQAcLUOEb9y9/RfZREqvtdztYo txbjkqGhupqMbiFFOkKuNK1igTM9yHAINGJtUvaIiQ5AqoyyHcyd1UxBGIPJDUmxQNap vfVS+ibWp2cRyNDeWibNGwUI5LKnz2qos3iSs= 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=ZyVK0A8BcB+qozmnN2C8BxkGqHTGLJ3XaFZtDYHRIGw=; b=O95S+xLkVVhp/DvQ1xAvcKpn2DIrwV+g19YLfQe1CvMeY2WPDahNM48QusmyJj4Gc3 sB+ru1BHhy5iKdB/R6106HYyLuyn7V6I/z+14Oou/CIAT7NNYuTLgAFK4LT26XtAzT1v ViM4nSGcs4CZUC76m5bPRPHINq+ur5p6/xOg+kgXJeg/Nh8bI7/0qptchsTPMl1y1SQI IR1Ye+P+ouq9WHIL/FgdRJT4NE2OeWp2eF8fGaRgvV3KJsOZfKInQCwl7Xw78J8EPBvk qyVhlHwb9PV+q/Ji/l1d5dKJcT78vWFDZpXuCnFnsxsBGPpkHeV3EnFOXdBNsCSG8OQu WZmA== X-Gm-Message-State: AFeK/H3Oatrmc88Quw2AHbD+A9uzAtuN2yj3wk2tOoGV9Gm+D1lss86LIQkP3OPyGJzExhQR X-Received: by 10.200.3.214 with SMTP id z22mr11600160qtg.3.1489702166533; Thu, 16 Mar 2017 15:09:26 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Mar 2017 15:09:25 -0700 (PDT) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [RFC PATCH 3/3] drm/panel: panel-sharp-ls043t1le01: Use panel-common helpers Date: Thu, 16 Mar 2017 18:08:33 -0400 Message-Id: <20170316220837.17347-4-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-ls043t1le01.c | 70 +++++++------------------ 2 files changed, 20 insertions(+), 51 deletions(-) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 98db78d22a13..22f374f414cd 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -88,6 +88,7 @@ config DRM_PANEL_SHARP_LS043T1LE01 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 LS043T1LE01 qHD (540x960) DSI panel as found on the Qualcomm APQ8074 Dragonboard diff --git a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c b/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c index 3aeb0bda4947..d89e45aa4912 100644 --- a/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +++ b/drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c @@ -18,11 +18,9 @@ * this program. If not, see . */ -#include #include #include #include -#include #include #include @@ -31,16 +29,16 @@ #include