From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE5012F90DB for ; Mon, 19 Jan 2026 21:21:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768857717; cv=none; b=JrDSBPoJJD8YVqU95s/W+ArrlQ8uG2CvSlja8qZdLIYP/Ng1r/cbpVcz0VJ/7rd2NBb53L6k8Ftqx77IjUg6A2s/0lDKPOvAxelxXbIL3TqjTeb+HTELhlu1NO8DlwkNz5StvLCwYwh8LYrly0sHDR8joIXs8NFInCiDea5YNVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768857717; c=relaxed/simple; bh=ZjFOqik0o6rQoT1UY2AskVPEAMalY/JsyzYKxddV3pQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g0VUc8VYcGLwGmDBPUs84nPFfyhAiX8jeEgXZic61Zze5OgOkHXsBUO2oupadtN9ErANjV4NRQ2Yrut2YtCWf0BE4VuqR0cO41M/BwhUtEyDLEw9bDysMyL1w/NkzUeatqCTiRjbv36fEA9qwhpqtzV2EKwxHK4Wx1K8NdjJyqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aFuFOt6/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aFuFOt6/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89BDBC116C6; Mon, 19 Jan 2026 21:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768857717; bh=ZjFOqik0o6rQoT1UY2AskVPEAMalY/JsyzYKxddV3pQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aFuFOt6/8M6scGeGq3XLrU7ip96InflaoFTb5aF7qy+pc9MoMHbBy5NSkCFkjl4pQ 5vlwtlgfMl/i2fIgni0fX8Vb4dHfcc01MmBFcN7LEKKTDGp0SyZJOPuvEhZEuGZVdg 4xX7BTDoYiJ+/mM5X1O4W+XSWuvRdDwkqDprs5EWDtfSJLKzhpWSkY1R6JFq+Z8jjE eo/DMzWJM/kuyzyNVIbKta5L7GB/QttXyb93h/Fwlz7aqH2vS8wFFe+72HbkL3c3Lw KPgp1EgHS0SOCOoCc1gY2D3OMeWzV1tBSWlEVS0mrVsnNfRurbPEUzRCTaq8YzRy9T bkU1Hx431Lx6A== From: Jonathan Cameron To: linux-iio@vger.kernel.org, Andy Shevchenko Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Mike Looijmans , Liam Beguin , Miquel Raynal , Ibrahim Tilki , Cosmin Tanislav , Alisa-Dariana Roman , Jonathan Cameron Subject: [PATCH 07/11] iio: adc: ad4130: Improve include relevance Date: Mon, 19 Jan 2026 21:21:06 +0000 Message-ID: <20260119212110.726941-8-jic23@kernel.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260119212110.726941-1-jic23@kernel.org> References: <20260119212110.726941-1-jic23@kernel.org> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jonathan Cameron Replace asm/div64.h with linux/math64.h and drop kernel.h in favor of more specific includes. Also add some others that should be directly included to follow approximate include what you use. Justification for new headers from iwyu with a couple of comments where this deviates from recommendations. #include // for ARRAY_SIZE #include // for for_each_set_bit #include // for static_assert #include // for __aligned #include // for complete, init_completion, rei... #include // for container_of #include // for THIS_MODULE Ignored this one as seems reasonable to assume module.h will always include whereever that is! #include // for msecs_to_jiffies #include // for rounddown #include // for div_u64, div_u64_rem, DIV64_U6... #include // for __cmp_op_max #include // for of_device_id #include // for class_mutex_constructor, class... #include // for of_property_read_string, devic... #include // for false, true, NULL #include // for memcpy, memset #include // for __stringify #include // for sysfs_emit #include // for u32, bool, u64, u8, ssize_t struct fwnode_handle; Ignored this last recomendation because I think property.h can reasonably be expected to always include whereever this is. Signed-off-by: Jonathan Cameron Cc: Cosmin Tanislav --- drivers/iio/adc/ad4130.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/ad4130.c b/drivers/iio/adc/ad4130.c index 5567ae5dee88..745efefb7f35 100644 --- a/drivers/iio/adc/ad4130.c +++ b/drivers/iio/adc/ad4130.c @@ -4,8 +4,14 @@ * Author: Cosmin Tanislav */ +#include +#include #include #include +#include +#include +#include +#include #include #include #include @@ -15,16 +21,24 @@ #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 -- 2.52.0