From patchwork Mon Jun 12 20:13:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13277264 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B581DC7EE43 for ; Mon, 12 Jun 2023 20:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237471AbjFLUN4 (ORCPT ); Mon, 12 Jun 2023 16:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbjFLUNt (ORCPT ); Mon, 12 Jun 2023 16:13:49 -0400 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88A0610FF for ; Mon, 12 Jun 2023 13:13:43 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 8nv2q2OP12KZV8nv2qCD99; Mon, 12 Jun 2023 22:13:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1686600820; bh=C0M6mK52caELyzvGykIbR2TnUvJ7TdmnReFTsMllVYY=; h=From:To:Cc:Subject:Date; b=soYZ4Z1zClx9uA/59Yc5hZhdVWI68kOqEadC2OWkjc+bhbMltnjgANW3zXEY+jIkN nIwo051uMcEFR8+NptvigkAN6a0yRVYm2TMzBDN6AO1MyDLpan9IsBbethzp26WX7R XKmABLqhj13LtfHbs7uZNpu/d1ZHVUisotyIhYH3UoHu92b6daRouKk+6eI6WZ4Gzx m+edUtp14+QNKOxtl/y6I/gKrdWRRbFN5Yya6cxtVJwAu9caP27y1+DYpfatYCtUS/ oeJFM7N8/P1tsXni6cPMBgcMho7wghJEUQlXiPgUs2d0o0/I5rz3vx50E0MZhYXlUv zgjrpuS3E2wJA== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 12 Jun 2023 22:13:40 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Jonathan Cameron , Lars-Peter Clausen Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-iio@vger.kernel.org Subject: [PATCH 1/2] iio: st_sensors: Remove some redundant includes Date: Mon, 12 Jun 2023 22:13:36 +0200 Message-Id: <045ca726a9108325a3eaace807a264170895686c.1686600780.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org st_sensors_(i2c|spi).h already include st_sensors.h, so there is no need to include it explicitly. Signed-off-by: Christophe JAILLET --- drivers/iio/accel/st_accel_spi.c | 1 - drivers/iio/gyro/st_gyro_i2c.c | 1 - drivers/iio/gyro/st_gyro_spi.c | 1 - drivers/iio/magnetometer/st_magn_i2c.c | 1 - drivers/iio/magnetometer/st_magn_spi.c | 1 - drivers/iio/pressure/st_pressure_i2c.c | 1 - drivers/iio/pressure/st_pressure_spi.c | 1 - 7 files changed, 7 deletions(-) diff --git a/drivers/iio/accel/st_accel_spi.c b/drivers/iio/accel/st_accel_spi.c index f72a24f45322..ae5bf3b47209 100644 --- a/drivers/iio/accel/st_accel_spi.c +++ b/drivers/iio/accel/st_accel_spi.c @@ -13,7 +13,6 @@ #include #include -#include #include #include "st_accel.h" diff --git a/drivers/iio/gyro/st_gyro_i2c.c b/drivers/iio/gyro/st_gyro_i2c.c index 5a10a3556ab0..ceebd246100c 100644 --- a/drivers/iio/gyro/st_gyro_i2c.c +++ b/drivers/iio/gyro/st_gyro_i2c.c @@ -13,7 +13,6 @@ #include #include -#include #include #include "st_gyro.h" diff --git a/drivers/iio/gyro/st_gyro_spi.c b/drivers/iio/gyro/st_gyro_spi.c index 22aaabe48e4a..afdb8dffd72d 100644 --- a/drivers/iio/gyro/st_gyro_spi.c +++ b/drivers/iio/gyro/st_gyro_spi.c @@ -13,7 +13,6 @@ #include #include -#include #include #include "st_gyro.h" diff --git a/drivers/iio/magnetometer/st_magn_i2c.c b/drivers/iio/magnetometer/st_magn_i2c.c index 950826dd20bf..b9221794cf00 100644 --- a/drivers/iio/magnetometer/st_magn_i2c.c +++ b/drivers/iio/magnetometer/st_magn_i2c.c @@ -13,7 +13,6 @@ #include #include -#include #include #include "st_magn.h" diff --git a/drivers/iio/magnetometer/st_magn_spi.c b/drivers/iio/magnetometer/st_magn_spi.c index f203e1f87eec..5540500ba9fa 100644 --- a/drivers/iio/magnetometer/st_magn_spi.c +++ b/drivers/iio/magnetometer/st_magn_spi.c @@ -13,7 +13,6 @@ #include #include -#include #include #include "st_magn.h" diff --git a/drivers/iio/pressure/st_pressure_i2c.c b/drivers/iio/pressure/st_pressure_i2c.c index 5101552e3f38..8ba0d1212401 100644 --- a/drivers/iio/pressure/st_pressure_i2c.c +++ b/drivers/iio/pressure/st_pressure_i2c.c @@ -14,7 +14,6 @@ #include #include -#include #include #include "st_pressure.h" diff --git a/drivers/iio/pressure/st_pressure_spi.c b/drivers/iio/pressure/st_pressure_spi.c index 25cca5ad7c55..ffa1970a5aeb 100644 --- a/drivers/iio/pressure/st_pressure_spi.c +++ b/drivers/iio/pressure/st_pressure_spi.c @@ -13,7 +13,6 @@ #include #include -#include #include #include "st_pressure.h" From patchwork Mon Jun 12 20:13:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 13277265 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFCD4C7EE43 for ; Mon, 12 Jun 2023 20:14:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237769AbjFLUOV (ORCPT ); Mon, 12 Jun 2023 16:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233496AbjFLUNx (ORCPT ); Mon, 12 Jun 2023 16:13:53 -0400 Received: from smtp.smtpout.orange.fr (smtp-21.smtpout.orange.fr [80.12.242.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F7B1711 for ; Mon, 12 Jun 2023 13:13:47 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id 8nv2q2OP12KZV8nv8qCDA3; Mon, 12 Jun 2023 22:13:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1686600826; bh=J/2JLtm8exGsXMCV+3V9bGaq28GcUnszoK7rIe0Hpa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=X7fAGo4TuIVG+qDntP/1a5pzA/sKX+7zWKBY6X1z/QQg8NQKl1nygGq7wp5RnsHbG 5iUOvRMvft8s7SKdlZDEXtx2+BbBDMGfTC0PjHkqtGyyfQGwyh4GMQyJ2X6MvjQ/pm S9fFpD4TxsSqI6dJxf2nx45UeQgQGSW6ICSzEW0hpxeRgHowCDAn6b6UWnuZUgEEIf QMbpXeemmSA/OYSmYMqitKsuquypMIdQtoXujve9hfa8Gti8Wid7x4fHVJU9E+aXvF GLArxT3+eeo4+CMWry/aL1V5VPqrF927hnYQ9kQ7XlrGGON/PaAnHQWxltWb4cQsCZ YUONXPyglvTwg== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 12 Jun 2023 22:13:46 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Jonathan Cameron , Lars-Peter Clausen Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-iio@vger.kernel.org Subject: [PATCH 2/2] iio: st_sensors: Remove some redundant includes in st_sensors.h Date: Mon, 12 Jun 2023 22:13:37 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: <045ca726a9108325a3eaace807a264170895686c.1686600780.git.christophe.jaillet@wanadoo.fr> References: <045ca726a9108325a3eaace807a264170895686c.1686600780.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org There is no need to include i2c.h and spi/spi.h in st_sensors.h. Should it be needed, st_sensors_(i2c|spi).h should be used. Signed-off-by: Christophe JAILLET --- Based on one of my script, this reduces the number of included files from 573 files to 515 files when compiling drivers/iio/accel/st_accel_buffer.c --- include/linux/iio/common/st_sensors.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index 607c3a89a647..a1d3d57d6d6e 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h @@ -10,8 +10,6 @@ #ifndef ST_SENSORS_H #define ST_SENSORS_H -#include -#include #include #include #include