From patchwork Sun Oct 3 15:32:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532759 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 EA91DC433FE for ; Sun, 3 Oct 2021 15:29:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBCA961A3A for ; Sun, 3 Oct 2021 15:29:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbhJCPbA (ORCPT ); Sun, 3 Oct 2021 11:31:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:34320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230504AbhJCPa7 (ORCPT ); Sun, 3 Oct 2021 11:30:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DB6261A4F; Sun, 3 Oct 2021 15:29:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274952; bh=VZK9z9167PNfRFzuwa0Kdi2vwBw0ycQNuXSvaGVPpuE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F8FqABb68kvm7JUWRrtsh6zhcwQMpbssve+jyJ9ho7wHdRM/y/CKuOFw1NHPDedG0 3JuM1YOBLtMJeNZ0CPjdtdWTYaWgkirsZCxq+q+/+om8F4VuH3ORtvAK3UrwF4QuTa 5BwuERlR2X1XLIYPkF5Bvzq7UOV7yR1yFKiIC2ovbslVchoy65DGSp+CyWzQaXKiiT NGL+ZJ+/2DXrKZ2IXALJpMWAicSgp2V/2187J2+kfBsAhIW2rAy5mTXUv3KYgdDCs7 ketBmFsfW3ZhLVxe7fbdFbzSUFf5DVEP5FPuKWAV4Yo+ss6zbgf+hTYChfem74DXoe ZmkMK6lnU/GNg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 01/11] iio: industrialio-core: Reorder header includes to be alphabetical. Date: Sun, 3 Oct 2021 16:32:56 +0100 Message-Id: <20211003153306.391766-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron All includes in alphabetical order, with the IIO specific headers in a separate block. Note this is a precursor to refining which headers are included. Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-core.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index 6afa70c89c80..d6c2875a832e 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -8,22 +8,23 @@ #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 "iio_core.h" #include "iio_core_trigger.h" From patchwork Sun Oct 3 15:32:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532761 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 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); From patchwork Sun Oct 3 15:32:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532765 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 81F9EC433F5 for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65BF961A38 for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230512AbhJCPbI (ORCPT ); Sun, 3 Oct 2021 11:31:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:34354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbhJCPbC (ORCPT ); Sun, 3 Oct 2021 11:31:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F0B961A54; Sun, 3 Oct 2021 15:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274955; bh=cT8CtZIAglZ5K25Xjr5BJpFkMg8ng0NQscE/+vcmfQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xt1E6ReNpKy9WFqWYb9ttnFk2pPCN9pGwaWdsnbSBnVMP0/06FU8Uv+t9lRlMFYiA JNHwOwn3iZZGH+dBD2EmjCx0WGR7DHcy/8feMjrHexWTSg3W0hzCKiBOQmprjBJ/7h 2711MOwXEPc7TvQvoDtOq4CzuB82kX864DpIoUuOBfNjcqxPeeH+Ns4LB2JWU7boyX 4b0/CcfMwA3Mj0JsfnaBOAMgTh3Gq8AQmGWNt4ixit6IOC/Xmjcb1R2DH+mGV0pW5q QbhCPr+43Ap4zyyB0XwsZt4JUmqpeydXOpV++vio3P+eBglglcFK/RlvOtiAYlzK7x /h9MUwg8Zn5eQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 03/11] iio: industrialio-buffer.c: Bring includes up to date. Date: Sun, 3 Oct 2021 16:32:58 +0100 Message-Id: <20211003153306.391766-4-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Note that a lot of functionality has moved around in IIO over the years and header includes have not always kept track. Based on manual inspection suggestions from the include-what-you-use-tool adjusted to take into account certain 'super headers' used in the kernel. Includes reordering headers to alphabetical order (mostly in order so not done in a separate patch). Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-buffer.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index ed7a5c0a31e1..f5ab3a43d5d6 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c @@ -9,16 +9,31 @@ * - Better memory allocation techniques? * - Alternative access techniques? */ +#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" From patchwork Sun Oct 3 15:32:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532763 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 6204AC433EF for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37BAD61A3A for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbhJCPbG (ORCPT ); Sun, 3 Oct 2021 11:31:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:34378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbhJCPbE (ORCPT ); Sun, 3 Oct 2021 11:31:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D95B161A3A; Sun, 3 Oct 2021 15:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274957; bh=uJ58o8qFdDr8bNKNq3id+E9+685neY3ERT2fvcpP3XA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qnxXneSgsAj8+orGmRmJ9/n8bCY9jPXcVQeGaD+E9imvhsEXoiKrtvjH0JuZY03qv sVSFWUuyUtrVnKQDGFHrwpPqYg9oF1G8vYySojPiFTbA/GD0gA8DxNwx/euOH6cZWv zw+FL/QkFy5zhWRUny2qvBWHAN13u9N/l9dKTHOhcAxio7CtDoG74Irbsq/Fn0Wpvp L0XmWAz4u5EKwYtLakG8PSbIqhhAqDbFgtGqxjFzt7XOp4L3jjyHMttIVeQ4WDoPBD bcsSYis8Ov8+bgZRj3UDvgaAXwmpA1SRyREC+LVQm4KuY1PuH6QDweRIWZRJHbsq9z sJQuSBKXQ2DAg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 04/11] iio: industrialio-event.c: Bring includes up to date. Date: Sun, 3 Oct 2021 16:32:59 +0100 Message-Id: <20211003153306.391766-5-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Partly as a result of moving code around in IIO and not keeping includes updated. Based on manual inspection of the output of include-what-you-use Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-event.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/iio/industrialio-event.c b/drivers/iio/industrialio-event.c index 1d49714d9832..e807cb9d091d 100644 --- a/drivers/iio/industrialio-event.c +++ b/drivers/iio/industrialio-event.c @@ -7,14 +7,19 @@ */ #include +#include #include +#include +#include #include #include #include -#include +#include +#include +#include #include -#include #include +#include #include #include #include From patchwork Sun Oct 3 15:33:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532769 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 1EB2BC4332F for ; Sun, 3 Oct 2021 15:29:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EED9E61A38 for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231131AbhJCPbI (ORCPT ); Sun, 3 Oct 2021 11:31:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:34396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbhJCPbF (ORCPT ); Sun, 3 Oct 2021 11:31:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67CE861A58; Sun, 3 Oct 2021 15:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274958; bh=J+jSd1lVSN0kvpuEY51noDAwdYKslzs8PeYsWzfLWpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q0X+W27qgQ1X3OhbSvbtdwGA9Ha/ihwUILzXM3CgLRTJJJa46VUUGvM8Zh5hVMt2f GFIdM7oKAmUJ+5ED8hVxC4CnNQz04QLJmmD5J8OcdT+XxFSj9wX3wx9ICm5T/MHKfp H15GQEqOt/GQEeNqDlll1qEH+4t448BJs90GytQBdIpk6AZWm5S11iy5+0RFkNxqd2 kCEfa6vkEz3V4OMaARHEoCoE6iAJSE0s1DPj0wHR6NmF2fU6VFJwiSystlpvChWFeH MQq4mS+556zCwaQgPndoJK9IDxz+CmwJrVFaTNAf+shf1GAptQitWcEyyCqjf6H0Qd 6QDt8dTiRoh1Q== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 05/11] iio: industrialio-trigger.c: Bring includes up to date. Date: Sun, 3 Oct 2021 16:33:00 +0100 Message-Id: <20211003153306.391766-6-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on manual inspection of the suggestions from the include-what-you-use tool. Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-trigger.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c index e4e59466a263..3b77371aea57 100644 --- a/drivers/iio/industrialio-trigger.c +++ b/drivers/iio/industrialio-trigger.c @@ -4,13 +4,22 @@ * Copyright (c) 2008 Jonathan Cameron */ -#include -#include -#include #include +#include +#include +#include #include +#include +#include #include +#include +#include +#include +#include #include +#include +#include +#include #include #include From patchwork Sun Oct 3 15:33:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532771 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 C1100C433FE for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A707B61A38 for ; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbhJCPbI (ORCPT ); Sun, 3 Oct 2021 11:31:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:34420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbhJCPbH (ORCPT ); Sun, 3 Oct 2021 11:31:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1FCB61A6E; Sun, 3 Oct 2021 15:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274959; bh=nT+cRMXj5xw6AugnDASLt7gRyvT2J39h1vAF9RnEXPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VcJwsRinRjgCPBdgTF7MJwz2KAwe3ijeIZGqwc23ikntAyt2Kun1SIz6iHWEqzEhi v5MWQmjdFAVDGyE7gUWtGnCcuNPBv6kCf9L8LoDkO0INhETn+12JhNv403npr5yCuP 2ANxvqEAjNJC3eOj1UDL+NnEd8STCrs/H8hem9zvh6BAuDjJcoZ9I/Avrt9B7kGEnK HhMN5LDgG1PEOmhyhNc67K+0Bpgcu+FJQsKH3t57lpmEsmBY30sdnYrnTPkTU+5Kza +v75z6b+Ey3fL9toSt2e+KuAWl7vp+hwMlIiNaqFkS687JAB8+X2tuQDdbhOALsguX o50fkztR1VpPw== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 06/11] iio: inkern: Bring includes up to date. Date: Sun, 3 Oct 2021 16:33:01 +0100 Message-Id: <20211003153306.391766-7-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on manual inspection of the suggestions from the include-what-you-use tool. Signed-off-by: Jonathan Cameron --- drivers/iio/inkern.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index 72c130d9fecb..2b478261f9a2 100644 --- a/drivers/iio/inkern.c +++ b/drivers/iio/inkern.c @@ -3,11 +3,16 @@ * * Copyright (c) 2011 Jonathan Cameron */ +#include #include #include -#include +#include +#include #include #include +#include +#include +#include #include #include "iio_core.h" From patchwork Sun Oct 3 15:33:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532767 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 7797CC43219 for ; Sun, 3 Oct 2021 15:29:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D92561A38 for ; Sun, 3 Oct 2021 15:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231140AbhJCPbJ (ORCPT ); Sun, 3 Oct 2021 11:31:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:34426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbhJCPbI (ORCPT ); Sun, 3 Oct 2021 11:31:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6062361A4F; Sun, 3 Oct 2021 15:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274961; bh=QcJU86k2Lx5NZ2UC/bYzR5+8NKWQVg0c7QV5PFTArXI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FvIDCo9HsZ7QmpFDuzaYnqw4LltdKWCAkhDRlQ0dz6nNsaLPVWXYJRPSQoGZkel47 1pXb9VPGFsip9AxpPQ/BjThh/2yqJ9So93AzNksUR4lj6MEqNw1Wb4EnQHiA7ZHdip 9jjgHQu2ifuHxrZ0kIOmMDs5kirBbN+LXRTxTUMKbFcR5iTzTgymb3cBPKNcwdXMlE F8CpyB4NnVj4GY3uTuIECclbvAWiOLKfvI6JyM5Pfp24Ab61ohH3CK6qjG1+8ZbqzO 4uNEbN2cDOPai46mhJ0ZtUFyf+rk0IyFH4B4wxkRL8YjDAWUfSj8/ZMeAxWmiic8i8 dnnHfpVDM0o0g== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 07/11] iio: configfs: Bring includes up to date Date: Sun, 3 Oct 2021 16:33:02 +0100 Message-Id: <20211003153306.391766-8-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on manual inspection of the suggestions from the include-what-you-use tool Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-configfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/iio/industrialio-configfs.c b/drivers/iio/industrialio-configfs.c index 47900de1f105..37f530faa131 100644 --- a/drivers/iio/industrialio-configfs.c +++ b/drivers/iio/industrialio-configfs.c @@ -6,12 +6,11 @@ */ #include -#include +#include #include -#include -#include +#include +#include -#include #include static const struct config_item_type iio_root_group_type = { From patchwork Sun Oct 3 15:33:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532773 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 09FEDC433EF for ; Sun, 3 Oct 2021 15:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E756E61A54 for ; Sun, 3 Oct 2021 15:29:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbhJCPbL (ORCPT ); Sun, 3 Oct 2021 11:31:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231133AbhJCPbK (ORCPT ); Sun, 3 Oct 2021 11:31:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BD83261A50; Sun, 3 Oct 2021 15:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274962; bh=dvH0bxqeV9kJS9Uf4j4GyWge6JxAA5EEgCHJdWlrb+g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U+h+bZvLPFjHETYaJr93/3heaUrDMXoswk6SkmoJkl4zJ1Wv3EnlZszx0FhRnOYVr WS2i12SMMk9oZykycwOzZ3uZGjZY12zkNt7u+pkXpqy2SW6RH2oR1LGKWJ7D7EoDVo 2Hb4K3dztuhsoylwm9z59jl7iEVVU38d4JRG5GdGsLPlQdgH8Z4KFNBVQlQe1yDhz1 7htBBKp35+iaNAXJ+p7J4+KF+HIlBpjO7v7xLTzkLA/1hP6r2c09q4goaL2lTD+eXf cGXV/Cv/SKThgxWYC4aKwEDr/vkIZOuHb1xO+qKfXmY1CQu0RJeYSDWjvo1Po73qyx aiFPThRjclAng== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 08/11] iio: misc core files: Bring includes up to date Date: Sun, 3 Oct 2021 16:33:03 +0100 Message-Id: <20211003153306.391766-9-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Small utility files from the IIO core grouped together in this commit. Based on manual inspection fo the suggestions from the include-what-you-use tool. Signed-off-by: Jonathan Cameron --- drivers/iio/industrialio-sw-device.c | 8 +++++--- drivers/iio/industrialio-sw-trigger.c | 9 ++++++--- drivers/iio/industrialio-triggered-event.c | 3 ++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/iio/industrialio-sw-device.c b/drivers/iio/industrialio-sw-device.c index 49f775f16ad5..6bcea1bacec2 100644 --- a/drivers/iio/industrialio-sw-device.c +++ b/drivers/iio/industrialio-sw-device.c @@ -5,11 +5,13 @@ * Copyright (c) 2016 Intel Corporation */ -#include +#include #include -#include #include -#include +#include +#include +#include +#include #include #include diff --git a/drivers/iio/industrialio-sw-trigger.c b/drivers/iio/industrialio-sw-trigger.c index 9ae793a70b8b..66796ca59676 100644 --- a/drivers/iio/industrialio-sw-trigger.c +++ b/drivers/iio/industrialio-sw-trigger.c @@ -5,11 +5,14 @@ * Copyright (c) 2015 Intel Corporation */ -#include +#include +#include #include -#include #include -#include +#include +#include +#include +#include #include #include diff --git a/drivers/iio/industrialio-triggered-event.c b/drivers/iio/industrialio-triggered-event.c index 4bedc65c9fe3..91179482dc4f 100644 --- a/drivers/iio/industrialio-triggered-event.c +++ b/drivers/iio/industrialio-triggered-event.c @@ -3,8 +3,9 @@ * Copyright (C) 2015 Cogent Embedded, Inc. */ -#include +#include #include +#include #include #include #include From patchwork Sun Oct 3 15:33:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532775 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 DFFE4C433F5 for ; Sun, 3 Oct 2021 15:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5B3B61A4F for ; Sun, 3 Oct 2021 15:29:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbhJCPbM (ORCPT ); Sun, 3 Oct 2021 11:31:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:34478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhJCPbL (ORCPT ); Sun, 3 Oct 2021 11:31:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 71DB461A38; Sun, 3 Oct 2021 15:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274964; bh=yEVNYgQwxw1a1ZsNy8jC366E+pV4t2dQS1OUGoGzW68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SFMZCOycOUJq8OKAE7H6uPy0SHD1Y2ksQrM3UhiwE7aEnSoi7ZKx6W4jQK3YJDZEV ee8crJNfPzKTbAZk+DZ2KSvoHaZR0EZnSiTS4Z3GijlAaavZ/tcdC8S5368BnVuyva qfJIgQDf+fO2U/uMJ2O3lzv41dh1tTI6KES5dXU3x+k0/k8c98pddtVV1jKQtASxxh 88MuuXxBNWZ3AhqmfGlPVhlVVRZhYY9krYK9ejrXSJo6FcFpy3ideckx45wjCnepTK vr5oxprwWDpIQhpF0KMnm6drv/nZjj9EuOCYFqoHYvLeKuElx9FngKlVggKttzMEvi 0JAese9igQUUw== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 09/11] iio: industrialio-triggered-buffer: Bring includes up to date. Date: Sun, 3 Oct 2021 16:33:04 +0100 Message-Id: <20211003153306.391766-10-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on manual inspection of the suggestions made by the include-what-you-use tool. Signed-off-by: Jonathan Cameron --- drivers/iio/buffer/industrialio-triggered-buffer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iio/buffer/industrialio-triggered-buffer.c b/drivers/iio/buffer/industrialio-triggered-buffer.c index f77c4538141e..c1c445853c66 100644 --- a/drivers/iio/buffer/industrialio-triggered-buffer.c +++ b/drivers/iio/buffer/industrialio-triggered-buffer.c @@ -4,8 +4,10 @@ * Author: Lars-Peter Clausen */ -#include +#include +#include #include +#include #include #include #include @@ -14,6 +16,8 @@ #include #include +struct attribute; + /** * iio_triggered_buffer_setup_ext() - Setup triggered buffer and pollfunc * @indio_dev: IIO device structure From patchwork Sun Oct 3 15:33:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532777 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 841D2C433EF for ; Sun, 3 Oct 2021 15:29:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 685DE61A38 for ; Sun, 3 Oct 2021 15:29:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231148AbhJCPbP (ORCPT ); Sun, 3 Oct 2021 11:31:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:34490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbhJCPbN (ORCPT ); Sun, 3 Oct 2021 11:31:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DBC9861A50; Sun, 3 Oct 2021 15:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274965; bh=czuox0/gmxmJkyLJKVtkWvQGyyY3eldBxAu4qv/IydE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dbfAgs/KiSUh3g29Tgd7KoamthgIcPIz1PLzT+LQvf5naRayDGH5ezhSlkWdtX87/ +trpw+Tc0ee/khewBdq6waIpfCTgrv+OcgcU/DaXEH9PU9eeucyE4akVeNnSw9bt/Z vIdBJM8JZVGXHZosDtmIRac7gHmkYQ2+NnDDtq8U2WLXQbMkS4WuEl5YNBFGnrYk2k 8fvTH/OQpaM6u82Kd1kM7g5PO8C8gUy+B5KnHY6PmMa19WIBAJqY8Rx16NBdJei8Rm G+ephr6WXLFinJi8zTXWUf3DS2DV7uWhBP4czzmRn0xYdbibpynXnRojendgxLeiX/ qfwQ4PZMc3TAQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 10/11] iio: industrialio-buffer-cb: Bring includes up to date. Date: Sun, 3 Oct 2021 16:33:05 +0100 Message-Id: <20211003153306.391766-11-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on manual inspection of the suggestions from the include-what-you-use tool. Signed-off-by: Jonathan Cameron --- drivers/iio/buffer/industrialio-buffer-cb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/iio/buffer/industrialio-buffer-cb.c b/drivers/iio/buffer/industrialio-buffer-cb.c index 4c12b7a94af5..3918176384c6 100644 --- a/drivers/iio/buffer/industrialio-buffer-cb.c +++ b/drivers/iio/buffer/industrialio-buffer-cb.c @@ -2,11 +2,14 @@ /* The industrial I/O callback buffer */ +#include +#include +#include +#include #include +#include #include #include -#include -#include #include #include #include From patchwork Sun Oct 3 15:33:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12532779 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 C82A4C433F5 for ; Sun, 3 Oct 2021 15:29:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFCCB61A38 for ; Sun, 3 Oct 2021 15:29:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbhJCPbQ (ORCPT ); Sun, 3 Oct 2021 11:31:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhJCPbO (ORCPT ); Sun, 3 Oct 2021 11:31:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 51D2161A4F; Sun, 3 Oct 2021 15:29:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633274967; bh=z6hCbftCu31mLWu+lXRkbD6/zGsZjf1CcFBpcGFhZjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uocifEoN1VO1OwHV4D0/ibDZD8GWByVYJuKqfjU9LaQiYINyzjn65Wg4InIPYaZzr tOI+ScMOjSNKr2fdWast4KhOJODAUlT/vLwvPkvx8WvkgI8p82UZweC9+Cjkz92xuv fpFhaoC1vIsutNC0qLSNHyzbjjCSfCi9heY3lJJFEsr3qjGvtGhwpD6haPUaoq1V7a D934aaurkKDb45182Wnr8WKfcldnu/79OTg8iDOfX0r1Jo2yA6PsDf/zV/MZKc3zSE I4o5xZX9lx1Rk2ebgP4W5XWnCXYocivRS2/8IIdn37Jyr9yRkRgmTOkItYYy30BPiV vsBYAvNQHB5tg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Andy Shevchenko , Jonathan Cameron Subject: [RFC PATCH 11/11] iio: kfifo-buf.c: Bring includes up to date. Date: Sun, 3 Oct 2021 16:33:06 +0100 Message-Id: <20211003153306.391766-12-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Based on manual inspection of the suggestions from the include-what-you-use tool. Signed-off-by: Jonathan Cameron --- drivers/iio/buffer/kfifo_buf.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/iio/buffer/kfifo_buf.c b/drivers/iio/buffer/kfifo_buf.c index 516eb3465de1..9564fcbb8979 100644 --- a/drivers/iio/buffer/kfifo_buf.c +++ b/drivers/iio/buffer/kfifo_buf.c @@ -1,17 +1,20 @@ // SPDX-License-Identifier: GPL-2.0-only -#include -#include -#include #include -#include +#include +#include +#include #include +#include +#include #include +#include + #include #include #include #include -#include -#include + +struct attribute; struct iio_kfifo { struct iio_buffer buffer;