From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 034FEC48BE0 for ; Fri, 11 Jun 2021 17:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D8EA26124C for ; Fri, 11 Jun 2021 17:12:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231514AbhFKROK (ORCPT ); Fri, 11 Jun 2021 13:14:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:60530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbhFKROJ (ORCPT ); Fri, 11 Jun 2021 13:14:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2A2F613D0; Fri, 11 Jun 2021 17:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623431531; bh=TPqFEd2IN1Da5sF1EtgEHgRRtvpoNF7ySi5QwPoy340=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qrTS+X30E6yIpfATRkmIc9qodHvBwvvFirlTH7TeWyVyfkBbHvA4/dus4mrzjKT+q OzEWdt62O2kMdlKQJ9GOYWGYepT+5jZ+DrBeU3IlsWF1tn80Yv4eNDLGrLEoA6uh3D Lc5hmpxosVLrkJtvyJzWS5qNkE+Ye7cemyPDpFi3ipAc6HcghyZ2klfvZhgWKAF85E RaZBOUHWhVriXvQs1qKhwk/6ST8vUJf3yeK2PaoNgh3YhTyw64PwQJvWq+j/+iTjDH fzt/muRlCgxVJ2qaBn+PBt2sOOZ6fVD0MBCdWqMykcIPER3b89xpktAxeT1q/WkIo5 jXvR8gaIKAydQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich Subject: [PATCH 01/12] iio:accel:adxl372: Cleanup includes Date: Fri, 11 Jun 2021 18:13:43 +0100 Message-Id: <20210611171355.202903-2-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611171355.202903-1-jic23@kernel.org> References: <20210611171355.202903-1-jic23@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on consideration of the output of include-what-you-use. Drop some unused headers and include others that should probably be there based on direct use. Also a few forward definitions to avoid any potential future include ordering issues. Signed-off-by: Jonathan Cameron Cc: Lars-Peter Clausen Cc: Michael Hennerich --- drivers/iio/accel/adxl372.c | 4 ++-- drivers/iio/accel/adxl372.h | 2 ++ drivers/iio/accel/adxl372_spi.c | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/iio/accel/adxl372.c b/drivers/iio/accel/adxl372.c index fc9592407717..c679cb9f3ed1 100644 --- a/drivers/iio/accel/adxl372.c +++ b/drivers/iio/accel/adxl372.c @@ -6,12 +6,12 @@ */ #include +#include #include #include -#include #include +#include #include -#include #include #include diff --git a/drivers/iio/accel/adxl372.h b/drivers/iio/accel/adxl372.h index 80a0aa9714fc..86bf8955d60c 100644 --- a/drivers/iio/accel/adxl372.h +++ b/drivers/iio/accel/adxl372.h @@ -9,6 +9,8 @@ #define _ADXL372_H_ #define ADXL372_REVID 0x03 +struct device; +struct regmap; int adxl372_probe(struct device *dev, struct regmap *regmap, int irq, const char *name); diff --git a/drivers/iio/accel/adxl372_spi.c b/drivers/iio/accel/adxl372_spi.c index 1f1352fee99a..927379f9b497 100644 --- a/drivers/iio/accel/adxl372_spi.c +++ b/drivers/iio/accel/adxl372_spi.c @@ -6,9 +6,8 @@ */ #include +#include #include -#include -#include #include #include "adxl372.h" -- 2.31.1