From patchwork Sat May 25 20:43:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 10961123 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3659F1575 for ; Sat, 25 May 2019 20:43:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27F49288DB for ; Sat, 25 May 2019 20:43:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C4FB28AA2; Sat, 25 May 2019 20:43:45 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 639AD288DB for ; Sat, 25 May 2019 20:43:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4AA5E6E175; Sat, 25 May 2019 20:43:42 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C1566E175; Sat, 25 May 2019 20:43:40 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id a10so718519ljf.6; Sat, 25 May 2019 13:43:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8jW5WMKBQnFethQD+xzlJNXZUgkPqZYqqdNyuUtThsg=; b=hYTeW08dtqWPrbb4yhnzkyiCHqsj9Q727yxvOlplRAX7GkhpqBowt7O1PIh50h0aIa eELuLnxsZuQes2WU1OaBZHBz8cEQVCPamqwYE1kc9OwnHOmV9X2zxvy72Zpd0UgW4uSw 1Cdb0czDB80dlrUB7/Lle56aBafUjEw7GhqAoDBU+iwRdY4E9rec4agRwmWZjJACyOSX GNSUPKm3jGgO3Xjg3pzRwgFU/s9LLtTwDzNekYRgnlvR06gc1ezYIYmPYsj2JvFIhvfF bSA36GMqRPCMXHYNkuEkugezXq/resOrpCfVs4RAkFx5antxZ1Qt17yKyPYbPLDnTn4B 4hPQ== X-Gm-Message-State: APjAAAXCemhCT6vqJboVPe5MgRFBKg8oXOpNCH/o/qDvZ3yiiKZnEqKA UxLNQ0RoZ2QxGP3P2qiee8ocrQCx X-Google-Smtp-Source: APXvYqwk6M7Q/HmRhrbckivTmEU+Zb4OkNovIKMSx3sEkdvatuv8F8Str1kkV1iG2DVTvryFWLgAGA== X-Received: by 2002:a2e:9594:: with SMTP id w20mr10043395ljh.17.1558817018411; Sat, 25 May 2019 13:43:38 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id i187sm1328569lfe.64.2019.05.25.13.43.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 May 2019 13:43:37 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org Date: Sat, 25 May 2019 22:43:16 +0200 Message-Id: <20190525204319.28977-3-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190525204319.28977-1-sam@ravnborg.org> References: <20190525204319.28977-1-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8jW5WMKBQnFethQD+xzlJNXZUgkPqZYqqdNyuUtThsg=; b=MiGcp911uUO/xgdL3spEniC/xBu4kosBD0zp3s5PouZbfSIBNyZNIXdMXWTXNqY8Ws X/49o6ulfIrv4ugpeUoM/Obgb/Wbsu0gFs5Pwv1jfbVqr5Dx8GxPxuuPMml/jZUCSDT2 biOvfDwDB9wZSQzQjqtw05Ti7NYxjt2bakv9p3WkJIe+UCmjYbd2q2eYeONOWKuyChMU aUwS/H32/x3ODWpx4UMeyudQ078wWAefvGEdjPrdq5UowJO9lF029nqOZrLHLi8T1CGC Hr4LseMCQsiYVAYH0aIgmWSg8nudaNBj0oYt7kw0z5S+2Zp/WM24sGqBxxcwqp+C1uzE 5Adg== Subject: [Intel-gfx] [PATCH v3 2/5] drm/gma500: drop drmP.h from header files X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, Sam Ravnborg Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Drop use of drmP.h from all header files in drm/gma500. Fix fallout in all files. In some cases moved include lines and sorted them too. With drmP.h removed from all header files it can now be removed from each .c file without any further dependencies Signed-off-by: Sam Ravnborg Acked-by: Daniel Vetter Acked-by: Patrik Jakobsson Cc: David Airlie --- drivers/gpu/drm/gma500/framebuffer.h | 1 - drivers/gpu/drm/gma500/gtt.h | 1 - drivers/gpu/drm/gma500/intel_bios.c | 1 + drivers/gpu/drm/gma500/intel_bios.h | 3 +-- drivers/gpu/drm/gma500/intel_i2c.c | 3 ++- drivers/gpu/drm/gma500/mdfld_device.c | 2 ++ drivers/gpu/drm/gma500/mdfld_dsi_dpi.c | 2 ++ drivers/gpu/drm/gma500/mdfld_dsi_output.c | 5 +++-- drivers/gpu/drm/gma500/mdfld_dsi_output.h | 2 +- drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c | 2 ++ drivers/gpu/drm/gma500/mdfld_tmd_vid.c | 2 ++ drivers/gpu/drm/gma500/power.h | 4 +++- drivers/gpu/drm/gma500/psb_drv.h | 2 +- drivers/gpu/drm/gma500/psb_irq.h | 2 +- drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c | 8 +++++--- 15 files changed, 26 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/gma500/framebuffer.h b/drivers/gpu/drm/gma500/framebuffer.h index e8e6357f033b..b54477aec95f 100644 --- a/drivers/gpu/drm/gma500/framebuffer.h +++ b/drivers/gpu/drm/gma500/framebuffer.h @@ -22,7 +22,6 @@ #ifndef _FRAMEBUFFER_H_ #define _FRAMEBUFFER_H_ -#include #include #include "psb_drv.h" diff --git a/drivers/gpu/drm/gma500/gtt.h b/drivers/gpu/drm/gma500/gtt.h index cb0c3a2a1fd4..c9449aabc58f 100644 --- a/drivers/gpu/drm/gma500/gtt.h +++ b/drivers/gpu/drm/gma500/gtt.h @@ -20,7 +20,6 @@ #ifndef _PSB_GTT_H_ #define _PSB_GTT_H_ -#include #include /* This wants cleaning up with respect to the psb_dev and un-needed stuff */ diff --git a/drivers/gpu/drm/gma500/intel_bios.c b/drivers/gpu/drm/gma500/intel_bios.c index 45c17c6f58f8..9c67d08a55ea 100644 --- a/drivers/gpu/drm/gma500/intel_bios.c +++ b/drivers/gpu/drm/gma500/intel_bios.c @@ -20,6 +20,7 @@ */ #include #include +#include #include "psb_drv.h" #include "psb_intel_drv.h" diff --git a/drivers/gpu/drm/gma500/intel_bios.h b/drivers/gpu/drm/gma500/intel_bios.h index e0ccf1d19a4d..bb3b813d1e68 100644 --- a/drivers/gpu/drm/gma500/intel_bios.h +++ b/drivers/gpu/drm/gma500/intel_bios.h @@ -22,8 +22,7 @@ #ifndef _INTEL_BIOS_H_ #define _INTEL_BIOS_H_ -#include -#include +struct drm_device; struct vbt_header { u8 signature[20]; /**< Always starts with 'VBT$' */ diff --git a/drivers/gpu/drm/gma500/intel_i2c.c b/drivers/gpu/drm/gma500/intel_i2c.c index 98a28c209555..147b556deeb0 100644 --- a/drivers/gpu/drm/gma500/intel_i2c.c +++ b/drivers/gpu/drm/gma500/intel_i2c.c @@ -17,9 +17,10 @@ * Authors: * Eric Anholt */ +#include #include -#include #include +#include #include "psb_drv.h" #include "psb_intel_reg.h" diff --git a/drivers/gpu/drm/gma500/mdfld_device.c b/drivers/gpu/drm/gma500/mdfld_device.c index e2ab858122f9..585ec2e46166 100644 --- a/drivers/gpu/drm/gma500/mdfld_device.c +++ b/drivers/gpu/drm/gma500/mdfld_device.c @@ -17,6 +17,8 @@ * **************************************************************************/ +#include + #include "psb_drv.h" #include "mid_bios.h" #include "mdfld_output.h" diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c index d0bf5a1e94e8..832bae24fd72 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c @@ -25,6 +25,8 @@ * Jackie Li */ +#include + #include "mdfld_dsi_dpi.h" #include "mdfld_output.h" #include "mdfld_dsi_pkg_sender.h" diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c index fe020926ea4f..9ca982e77fa5 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c @@ -25,14 +25,15 @@ * Jackie Li */ -#include +#include +#include +#include #include "mdfld_dsi_output.h" #include "mdfld_dsi_dpi.h" #include "mdfld_output.h" #include "mdfld_dsi_pkg_sender.h" #include "tc35876x-dsi-lvds.h" -#include #include /* get the LABC from command line. */ diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.h b/drivers/gpu/drm/gma500/mdfld_dsi_output.h index 5b646c1f0c3e..68d14451e303 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.h +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.h @@ -29,7 +29,7 @@ #define __MDFLD_DSI_OUTPUT_H__ #include -#include + #include #include #include diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c index c50534c923df..003e96a20139 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c @@ -24,7 +24,9 @@ * Jackie Li */ +#include #include + #include