From patchwork Fri Jun 11 15:26:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315909 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 3C772C48BE5 for ; Fri, 11 Jun 2021 15:24:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 203E661400 for ; Fri, 11 Jun 2021 15:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231612AbhFKP0W (ORCPT ); Fri, 11 Jun 2021 11:26:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhFKP0W (ORCPT ); Fri, 11 Jun 2021 11:26:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D530613F9; Fri, 11 Jun 2021 15:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425064; bh=u2VUhnSE2tkqul+DuCqGlYUrEMmTfLbRTxtgNTdZHQg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nU2TrBjCKSqt62sWDHjPhxJXavUMSik+eXB7YSWyY1p1rqpTYQjLLqXdAs2oMq40R 7tmuVubw6ATLcmHVw9p7OjErTxBFY3nloXCalspsVWfTQdk9fxPq5yP2uQnsn+lgBG eH1kfVLcv8UkZ1Y6PL4WGda9KjA0HzmT83Pm713TbWhgz0NzcYxU1+kxEiqbaMG5x4 ez+fYY8mUyRrAUYjZ4hyf93t17ZZr/rP3kwUPtQt6DPAnzoVhC21z4GJnzFmq3nuxY uzyHqufhdd2kdJ2vUbmMikBfP4YQnj1g26RHitFz69WtG8Hp9S4yQtGXhjI63o/BIy QZ9ncggRtReGQ== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 1/7] staging:iio:adc: Cleanup includes Date: Fri, 11 Jun 2021 16:26:08 +0100 Message-Id: <20210611152614.109361-2-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Result of considering the output of the include-what-you-use tool. Note that this is partly a case of taste and consistency. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/adc/ad7280a.c | 2 ++ drivers/staging/iio/adc/ad7816.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index fef0055b8990..135fdf33c655 100644 --- a/drivers/staging/iio/adc/ad7280a.c +++ b/drivers/staging/iio/adc/ad7280a.c @@ -15,6 +15,8 @@ #include #include #include +#include +#include #include #include diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c index 6c14d7bcdd67..0d943f99383b 100644 --- a/drivers/staging/iio/adc/ad7816.c +++ b/drivers/staging/iio/adc/ad7816.c @@ -9,11 +9,10 @@ #include #include #include -#include #include -#include #include #include +#include #include #include From patchwork Fri Jun 11 15:26:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315911 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 E03B2C48BE0 for ; Fri, 11 Jun 2021 15:24:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C2D9C613EE for ; Fri, 11 Jun 2021 15:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231757AbhFKP0b (ORCPT ); Fri, 11 Jun 2021 11:26:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:58626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbhFKP0Y (ORCPT ); Fri, 11 Jun 2021 11:26:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E173B613FA; Fri, 11 Jun 2021 15:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425066; bh=FBJKy5tann1grvl0yu2wQXYgMfNnyiJwMR2/bOESKWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bAwktObW2fCA50iLbgk2UcalfzsIUH8kd6ISuGkQZnFtujvTMNuI3duF4UaUguvvg 24TWeZ8MrKnuLcQjF9vcoT0fjLHNAPr+bb36cj0TAAtAX+q6ymGj7FpIKt/53QzI/n QDYejhc2BXGu3xua5gD1d5TK91gaFrxnxFQVEtijymF/4R39E9Y0FgW0v4sEG4XMc8 644A6UbKv+jIne54Fa6m6kMSEfstG9LYY+C4lRHYZBYgFsXqa1XaSzfg/Yb75kUYNb YoTDNnYjiLpgmiNNFDNb4GcrRjmFagY+5bCSvW1GhWdJEKGyjmRrvT1osfOZb8IcpY dbqCRy9Lm0OLg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 2/7] staging:iio:addac:adt7316: Cleanup includes Date: Fri, 11 Jun 2021 16:26:09 +0100 Message-Id: <20210611152614.109361-3-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron Result of consideration of the output of the include-what-you-use tool. Also a forwards definition of device to avoid any ordering of headers issues. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/addac/adt7316.c | 5 ----- drivers/staging/iio/addac/adt7316.h | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c index ccbafcaaf27e..e81791ee182f 100644 --- a/drivers/staging/iio/addac/adt7316.c +++ b/drivers/staging/iio/addac/adt7316.c @@ -8,14 +8,9 @@ #include #include #include -#include #include #include -#include #include -#include -#include -#include #include #include diff --git a/drivers/staging/iio/addac/adt7316.h b/drivers/staging/iio/addac/adt7316.h index 8c2a92ae7157..a1f6324ead59 100644 --- a/drivers/staging/iio/addac/adt7316.h +++ b/drivers/staging/iio/addac/adt7316.h @@ -10,6 +10,7 @@ #include #include +struct device; #define ADT7316_REG_MAX_ADDR 0x3F From patchwork Fri Jun 11 15:26:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315915 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 15A0CC48BD1 for ; Fri, 11 Jun 2021 15:24:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E9B906140D for ; Fri, 11 Jun 2021 15:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231709AbhFKP0c (ORCPT ); Fri, 11 Jun 2021 11:26:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:58656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbhFKP00 (ORCPT ); Fri, 11 Jun 2021 11:26:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 44BCE61400; Fri, 11 Jun 2021 15:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425069; bh=so2ZmCZCAuLN/tUwmKDJk9PunTi8CzGLj9JwuSKwal8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDB4jm3OPVtlWuXYB4uNAOpgrQednDQka/1BzQQf6hCurXZE00ZisC5Xi8CVRxdir MNF7CUfhDgE7sY+UOjj2Cp9TV7zGKW2DZ1SKX5Rn9zP7EXPUBqD6y+0Y3RSPCFc8rI EilYkZ58j9IhpRKY4vgsL2E6wCKcDu6AMXUMTK6Tef++hOgK6ZtDYOK91ZN7qRcLtm t6TOKvjoWshRvd5RnqSwJnAps8vR4pIud6rwh+FlP3wU8j34egsOQRvsSC3PGlmE8X nTsSryuLJYe/zlLpu4pv0sDjFULDDb+G1iY9tq320PNiOmAKf0gl62zBhycdHmZDla 1lwgwFy5LGFYg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 3/7] staging:iio:cdc:ad7746: Cleanup includes Date: Fri, 11 Jun 2021 16:26:10 +0100 Message-Id: <20210611152614.109361-4-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-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 consideration of the output of the include-what-you-use tool. Drop some unused includes + include some which probably should have been there in the first place. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/cdc/ad7746.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c index 4221312f0a32..fbdf90604c0d 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/staging/iio/cdc/ad7746.c @@ -8,11 +8,11 @@ #include #include #include -#include #include #include -#include -#include +#include +#include +#include #include #include From patchwork Fri Jun 11 15:26:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315913 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 9A0FCC48BE8 for ; Fri, 11 Jun 2021 15:24:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F6666140B for ; Fri, 11 Jun 2021 15:24:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231559AbhFKP0d (ORCPT ); Fri, 11 Jun 2021 11:26:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:58698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbhFKP03 (ORCPT ); Fri, 11 Jun 2021 11:26:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4CF661403; Fri, 11 Jun 2021 15:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425071; bh=dMk1apYHGU35BIbC57L7mRT5u/LZgR2A9rwZfev9o4c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iaOSx14J1UTNIR8WI92204WqNxv48iYVgxN92+j3G5Pe0nBWoUHEq++fGCedjTUyx JrP9yLmUgGv6RRJKFoIyky2WtuO1IYzSczFI99JPMV0ANo0yVOEnQU8sHq+BkN9S7x 32R+mGuouA1YhqZEXGMA8GypHI8nlTm2jmY/5SFio/81Hp4inVzinMgeLUaE3fR0hn mpQxZ4Iv8Cp8NaRsSr2gDht/WvMYANzz1+Rryy786fCogpBePa5rtIV3vht6SsJTKl 3FBfGDYeDpQ/0MRKZ7hXtzsPxZYRypljOBa10d3LBNXVw1Fz/ZzrJLyGVU37Vt4A7A EeP6ifnu/mBZw== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 4/7] staging:iio:frequency: Cleanup includes Date: Fri, 11 Jun 2021 16:26:11 +0100 Message-Id: <20210611152614.109361-5-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-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 consideration of the output of the include-what-you-use tool. Remove some unused headers and add some that should be directly included. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/frequency/ad9832.c | 3 ++- drivers/staging/iio/frequency/ad9834.c | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c index 3f1981e287f5..2d78072ff4c3 100644 --- a/drivers/staging/iio/frequency/ad9832.c +++ b/drivers/staging/iio/frequency/ad9832.c @@ -12,8 +12,9 @@ #include #include #include +#include +#include #include -#include #include #include diff --git a/drivers/staging/iio/frequency/ad9834.c b/drivers/staging/iio/frequency/ad9834.c index 94b131ef8a22..c163e91c1bc4 100644 --- a/drivers/staging/iio/frequency/ad9834.c +++ b/drivers/staging/iio/frequency/ad9834.c @@ -6,17 +6,15 @@ */ #include -#include -#include #include #include -#include #include -#include #include #include #include #include +#include +#include #include #include From patchwork Fri Jun 11 15:26:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315917 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 CA810C48BE5 for ; Fri, 11 Jun 2021 15:24:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B3F5961407 for ; Fri, 11 Jun 2021 15:24:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231738AbhFKP0e (ORCPT ); Fri, 11 Jun 2021 11:26:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:58704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbhFKP0a (ORCPT ); Fri, 11 Jun 2021 11:26:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8DD1D61404; Fri, 11 Jun 2021 15:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425073; bh=ZiNOt8KDCt+fRzUgKHxVHICNGdH9V2MKhmyLI4pOmUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rtk26PpASY+qGYZ/+ySB2nx85sE89+CfgwJlO4uodwsG5xWWSs7xhbFXIKnhQKJUs Cea9usPFeOPzt5xsdFSy4l/lq9UVSJq3AFEP4zLJrgd4oYqiTjedg+uRXX7GO5I5dd g0dQMDWVS5BQducoc8urOXo4lnWn5Du3w/LiefWgayIDtTeDPkw4RMgS2Q6SfwQRIS DIppkIEc7i2Vbb8u/gnkXFBaWjBml2MFcnChQZw7P/Bs236uS55QYuCWnYOpgk0Nfw hVxttZHJYqKkdRP1kjIoV4TLvGuLI6PyAKreSFsqYN9DGSiS2ysF1VyYATWwM4xWFl 1e9z/TvHUBS7A== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 5/7] staging:iio:impedance-analyzer: Cleanup includes Date: Fri, 11 Jun 2021 16:26:12 +0100 Message-Id: <20210611152614.109361-6-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-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 consideration of the output of the include-what-you-use tool. Drop unused headers and include some that should probably have always been included. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/impedance-analyzer/ad5933.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index 793918e1c45f..33dc8b7eb37a 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c @@ -5,17 +5,20 @@ * Copyright 2011 Analog Devices Inc. */ +#include #include #include #include #include #include -#include #include #include +#include +#include #include #include #include +#include #include #include From patchwork Fri Jun 11 15:26:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315919 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 6AA44C48BE6 for ; Fri, 11 Jun 2021 15:24:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54570613FA for ; Fri, 11 Jun 2021 15:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbhFKP0g (ORCPT ); Fri, 11 Jun 2021 11:26:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:58730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbhFKP0d (ORCPT ); Fri, 11 Jun 2021 11:26:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 801F2613DE; Fri, 11 Jun 2021 15:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425075; bh=o0xTMTs7ajCTG24cib5RhjG0E4dUOUFj+VxMI8s/Ydo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EUEJDwNCjpl9s3/amDZaq/KE7iGyrMyS5rByrdp1vJX4YvppxIRmq5584w0w7Wm+D GQsI1z6YM39uhhPG+Fvnnlsjtf5hzFwj7DdiJ3AlLVKMYRDvh6RK9SuyK04j4RSlI6 P7RNk1GchWp2y85lRmDHniwDVdT2BKq11glQA/vKRcgLGfajwika9SHx3FFbCm/B6L VFayYD2cAnC+jTRCxB0Ii0vZPweSdwFVzA1mQ0ligFStm6ganX4HGR5BlUDiI1Lm19 HNMeV6PeC3NykulimdKW+NZYiLaIMU1R2Pwwwb9DFmdBRUemw5T0DbAo/1UbaHQxAN wstFPzkU3lTQg== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 6/7] staging:iio:meter:ade7854: Cleanup includes Date: Fri, 11 Jun 2021 16:26:13 +0100 Message-Id: <20210611152614.109361-7-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-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 consideration of the output of the include-what-you-use tool. Drop some unused headers and some that should probably have always been included. Also a few forwards definitions to avoid any future issues with header ordering. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/meter/ade7854-i2c.c | 3 ++- drivers/staging/iio/meter/ade7854-spi.c | 3 ++- drivers/staging/iio/meter/ade7854.c | 4 ---- drivers/staging/iio/meter/ade7854.h | 5 +++++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/staging/iio/meter/ade7854-i2c.c b/drivers/staging/iio/meter/ade7854-i2c.c index a9a06e8dda51..c6b3e1418c84 100644 --- a/drivers/staging/iio/meter/ade7854-i2c.c +++ b/drivers/staging/iio/meter/ade7854-i2c.c @@ -8,8 +8,9 @@ #include #include #include -#include #include +#include +#include #include #include "ade7854.h" diff --git a/drivers/staging/iio/meter/ade7854-spi.c b/drivers/staging/iio/meter/ade7854-spi.c index f12a6c8b3e88..7ba7dc4cdbc9 100644 --- a/drivers/staging/iio/meter/ade7854-spi.c +++ b/drivers/staging/iio/meter/ade7854-spi.c @@ -8,8 +8,9 @@ #include #include #include -#include #include +#include +#include #include #include "ade7854.h" diff --git a/drivers/staging/iio/meter/ade7854.c b/drivers/staging/iio/meter/ade7854.c index 68da6ecde6a3..68a5e9c6b047 100644 --- a/drivers/staging/iio/meter/ade7854.c +++ b/drivers/staging/iio/meter/ade7854.c @@ -5,15 +5,11 @@ * Copyright 2010 Analog Devices Inc. */ -#include -#include #include #include #include #include -#include #include -#include #include #include diff --git a/drivers/staging/iio/meter/ade7854.h b/drivers/staging/iio/meter/ade7854.h index a51e6e3183d3..620d3d075f95 100644 --- a/drivers/staging/iio/meter/ade7854.h +++ b/drivers/staging/iio/meter/ade7854.h @@ -1,4 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0 */ + +#include +struct device; +struct iio_device; + #ifndef _ADE7854_H #define _ADE7854_H From patchwork Fri Jun 11 15:26:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 12315921 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 E4072C48BD1 for ; Fri, 11 Jun 2021 15:24:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D08C461400 for ; Fri, 11 Jun 2021 15:24:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231700AbhFKP0j (ORCPT ); Fri, 11 Jun 2021 11:26:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:58764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbhFKP0g (ORCPT ); Fri, 11 Jun 2021 11:26:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F9A1613EE; Fri, 11 Jun 2021 15:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623425077; bh=/j97fJLvi9HNNeHFu8LBc0eER59Zi+oQVnQTYg74bF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5W4P1bm3+87i3AkadaNDOCh1F8jT44mRFPOLLm+wJymzcwm/u8KwPRHl6+DF/6Px q1+5VtP+NXj1sqCJqIw7LSfCaaPZhD/m1RRRWxSk2TlaQ1KPVWDewANLyzN+zniDOP HwZJiXcY6A0S1Hk3IUNHJ6ELOV6a4dEV0nc+anYrgJ2E+TqPAW2+NUdQ9IES+Qkdkz bo65sMXEBq7h2q1jglezAvwSN+oHNAsRxcXCwtAy6Se2P54YOP8WUrFa3BrRm9OTU7 c3v5+ZrOY2ugFd+X8ivzw7Vf6fV+/LEwhTJwMudiAWEynNGBH4n59SiQnHaXXjea/J pge67ZkuL/0qA== From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Nuno Sa , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Subject: [PATCH 7/7] staging:iio:resolver:ad2s1210: Cleanup includes Date: Fri, 11 Jun 2021 16:26:14 +0100 Message-Id: <20210611152614.109361-8-jic23@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210611152614.109361-1-jic23@kernel.org> References: <20210611152614.109361-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 consideration of the output of the include-what-you-use tool. Drop unused includes and add some that should be there. Signed-off-by: Jonathan Cameron --- drivers/staging/iio/resolver/ad2s1210.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index 74adb82f37c3..99dec73144ba 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c @@ -4,15 +4,16 @@ * * Copyright (c) 2010-2010 Analog Devices Inc. */ +#include #include #include #include #include -#include #include -#include #include #include +#include +#include #include #include