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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 224E0C4332F for ; Sun, 3 Oct 2021 15:29:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB59461A3A for ; Sun, 3 Oct 2021 15:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230504AbhJCPbB (ORCPT ); Sun, 3 Oct 2021 11:31:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:34328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbhJCPbB (ORCPT ); Sun, 3 Oct 2021 11:31:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E07C661A50; Sun, 3 Oct 2021 15:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274954; bh=9v91GW04cmj631Y1Si1BQQl6se6WUIR9xIDGlQVaXPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RFpg1DSR0y8O+oDkFqL4VaGA4F7q+3P8m+B+BgyZmdb22OoBj6ryXzK+9m7wQ/gZM Qzvj4UE2kQVlEWBLTCpTCnAt0VstAhRB6g9WnMXP2GcwSOn6K5UjPelS8xy7R/Bqwk a2/o3I4By+Q6IWGis0YKwUDO7maZZkXP+oj/+q5vRa1hutFMqS9GtXCk7wbjbCNedA fTNb8KyZyGYlaLAsj1Nz07l7qB4IDeyY4EU7Ws3aiGK67o62H31oPR8ZvhRHthw0Dc rVsh/tYsh/FEiansfhnDK9YYtRZonn3X9GxdAGdTqw6q/bUaPvJudb+/gmjnJHnxW1 m23qu9L0eD/CQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 02/11] iio: industrialio-core - Bring includes up to date. Date: Sun, 3 Oct 2021 16:32:57 +0100 Message-Id: <20211003153306.391766-3-jic23@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211003153306.391766-1-jic23@kernel.org> References: <20211003153306.391766-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 Using the include-what-you-use tool as a guide a) Drop unnused headers. b) Add missing headers for functionality directly used in this file. Note that this is not an automated process and in somecases the suggestions were ignored, or a different header included to reflect what I understand to be expected structure of includes. Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-core.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index d6c2875a832e..64f4aba20d9e 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -8,22 +8,35 @@ #define pr_fmt(fmt) "iio-core: " fmt -#include -#include +#include +#include #include #include +#include #include +#include #include +#include #include +#include #include #include +#include +#include +#include +#include +#include +#include #include #include -#include +#include #include -#include #include -#include +#include +#include +#include +#include +#include #include #include "iio_core.h" @@ -31,8 +44,8 @@ #include "iio_opaque.h" #include #include -#include -#include + +struct iio_buffer; /* IDA to assign each registered device a unique id */ static DEFINE_IDA(iio_ida); -- 2.33.0