From patchwork Wed Jan 25 15:34:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92469 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2238293obz; Wed, 25 Jan 2017 07:36:16 -0800 (PST) X-Received: by 10.99.52.11 with SMTP id b11mr47724697pga.131.1485358576152; Wed, 25 Jan 2017 07:36:16 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q26si23718440pgc.152.2017.01.25.07.36.15; Wed, 25 Jan 2017 07:36:16 -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=@baylibre-com.20150623.gappssmtp.com; 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 S1752018AbdAYPgN (ORCPT + 25 others); Wed, 25 Jan 2017 10:36:13 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37015 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751731AbdAYPeg (ORCPT ); Wed, 25 Jan 2017 10:34:36 -0500 Received: by mail-wm0-f42.google.com with SMTP id c206so37094055wme.0 for ; Wed, 25 Jan 2017 07:34:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tuwHcfX2DJNHNlytZx2Grvu2SPsSBBtOMIF8kexKw1k=; b=vNb2r6TPWy419mcDt2Nv2x+Ki4c9SRkkk6S5vFg59CxpxkoXKjq72z68Hm4fKiaYqw HWD6phi74HN12yjUMNcWNI0zqfrdsEgPzntYYabCB/f704Toz3bOjEaQlTR3NjTlP6zj Ge/NOGSkPGVaMgC92U2YMh39mxonbuuYGK2F1tX29yM60DdvWjQhfNo5jYOQu5xPEiac wj6O75ZIgNDjUiqYEGUaZ2IWZ9PvYFSzRvOHu4qPyRHYeywyGsNrOryuZfiohfzD+Ffr p3VoLkbg1eBAdoacRKhMU/BA4SpBmKIR7L6vpZwGuebT2BUyY3zwGspDY/9ovVCEExyi 9Ldw== 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=tuwHcfX2DJNHNlytZx2Grvu2SPsSBBtOMIF8kexKw1k=; b=nt6n/8ztO5dRjKQ23EePYbV17v/Dvb7j9jtL8MqwC/1TINzXMsK7GGCaZHVT4PP4T1 mn2lOa16JeVBhlh4TRwiXcLgV7XOimMJQDuSeoyv0zHTXhixl1L1YaYo2RR8sSIkHNVw EOlxCLuxy+nBPsK3C0yv5OYDlfohpq3djRz1BL3KDfFHQ8QLc6hqqjDWw6drIb32eeQ/ 6oLjDZPFqW/QEdjjYO2I+oIJsW2N2VrRWcFER/uEgcNNGty+kMhQTeM8GgwiOKUpYOFR AdTyZYdJeG7VeKBa/jdkr8cQA+H/ECsVYnb3kgslE6osr8gBYUW/gnC38Z3Ulgm4I8vE 28Rw== X-Gm-Message-State: AIkVDXLOdnTolKSfKqvo5Uhka0rLhGGlb6p79x1G05/Uc3jWwFsH3ujAjhSa/DY4UYYDcPgA X-Received: by 10.223.162.155 with SMTP id s27mr33206855wra.134.1485358469692; Wed, 25 Jan 2017 07:34:29 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 33sm2462760wrd.34.2017.01.25.07.34.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 07:34:29 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Alexandre Courbot , Bamvor Jian Zhang Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/7] gpiolib: clean up includes Date: Wed, 25 Jan 2017 16:34:15 +0100 Message-Id: <1485358461-24070-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485358461-24070-1-git-send-email-bgolaszewski@baylibre.com> References: <1485358461-24070-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gpiolib.h uses enum gpiod_flags, but doesn't pull in gpio/consumer.h. Include it in gpiolib.h and don't include neither consumer.h nor driver.h from modules that already include gpiolib.h. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-dwapb.c | 1 - drivers/gpio/gpio-xgene-sb.c | 1 - drivers/gpio/gpiolib-acpi.c | 2 -- drivers/gpio/gpiolib-devprop.c | 2 -- drivers/gpio/gpiolib-legacy.c | 3 --- drivers/gpio/gpiolib-of.c | 1 - drivers/gpio/gpiolib-sysfs.c | 2 -- drivers/gpio/gpiolib.c | 1 - drivers/gpio/gpiolib.h | 1 + 9 files changed, 1 insertion(+), 13 deletions(-) -- 2.9.3 diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c index 6193f62..e486633 100644 --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -8,7 +8,6 @@ * All enquiries to support@picochip.com */ #include -#include /* FIXME: for gpio_get_value(), replace this with direct register read */ #include #include diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index 0332586..eb156c3 100644 --- a/drivers/gpio/gpio-xgene-sb.c +++ b/drivers/gpio/gpio-xgene-sb.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include "gpiolib.h" diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 9b37a36..aebd072 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -12,8 +12,6 @@ #include #include -#include -#include #include #include #include diff --git a/drivers/gpio/gpiolib-devprop.c b/drivers/gpio/gpiolib-devprop.c index 27f383b..cf4c677 100644 --- a/drivers/gpio/gpiolib-devprop.c +++ b/drivers/gpio/gpiolib-devprop.c @@ -11,8 +11,6 @@ #include #include -#include -#include #include "gpiolib.h" diff --git a/drivers/gpio/gpiolib-legacy.c b/drivers/gpio/gpiolib-legacy.c index 8b83099..f5e7ce8 100644 --- a/drivers/gpio/gpiolib-legacy.c +++ b/drivers/gpio/gpiolib-legacy.c @@ -1,6 +1,3 @@ -#include -#include - #include #include "gpiolib.h" diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 975b9f6..064d51f 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index 4b44dd9..844a7cd 100644 --- a/drivers/gpio/gpiolib-sysfs.c +++ b/drivers/gpio/gpiolib-sysfs.c @@ -2,8 +2,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 59d3d96..6722579 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index 2495b7e..067e5e5 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -13,6 +13,7 @@ #define GPIOLIB_H #include +#include #include #include #include