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 95DEA2FC009 for ; Mon, 19 Jan 2026 21:22:02 +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=1768857722; cv=none; b=nzrykOdXQ6Wc9i5Zgwb22+2t7EVfqQnEn1Vy+dJKH3sNd8GmewGDdI+Il3OT4c4Qzf/5ZyFGgObM+UXb6+6w4Et4kVgSwdyCMa6Bg6f3/XYfEwmNqrERzw3wr3EL6KJpWjv8IWcRs6/TdcnVWCOEb6XH2AnHbLcRMcZWsIkh9Io= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768857722; c=relaxed/simple; bh=d12t4z97iDhXKaRjUPouj4Z0ea+Ht3U8SBAHNSxm3fc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rjjvj05ERCZ8t2dKcSXl1iz9WUkRXwenDKYjMqicx/E4RY0e6Ns8F7rGKuT9Jwu6FGxmQz+pxvsy9TdP1QhgzeI6vn18/tGrYBz5FBdrekbWJknui0ItWM0Aj5D4j4EVkOVYooc6LfYht3D0GulpBjLsZWUsEjFn1fjthe48TdA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hjnPxnLr; 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="hjnPxnLr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CE49C116C6; Mon, 19 Jan 2026 21:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768857722; bh=d12t4z97iDhXKaRjUPouj4Z0ea+Ht3U8SBAHNSxm3fc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hjnPxnLrk2zUox8R0g15J2P1P/LW7qeMrRyyzzIGUd81TKrCSKDd+GDNGTjyrhqjN qOSog8/JYTk4icx/ny2VewqI7a+Z5UQ4vIKh8ObBkZaE/WytlPTHNs9ljoVZg1Dl/W XQHuwUAfP1X62IJRjTKTRd+dsSVhirxpNu/9JFjBIlayFncrBsOWN9HWIQw5229F1b o7U/nIDmxaDl+LkMDq5VmZpWdOU8X9gKkilNLimbfBvzdPX4nulkHt/jR1hjDVGGQ/ vZghZXRTvrTxqEcmkroHfUXMt+Uzj2BiBQL0l3jj2d97bau97dJDJkB45+G3zxqU7w URToCvGOEW/PQ== 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 08/11] iio: adc: ad7124: Improve include relevance Date: Mon, 19 Jan 2026 21:21:07 +0000 Message-ID: <20260119212110.726941-9-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 Drop unused linux/kfifo.h and linux/iio/sysfs.h. Replace kernel.h with more specific headers and add other missing headers that should be directly included to follow approximate include what you use principles. Justification for new headers from iwyu: #include // for ARRAY_SIZE #include // for container_of #include // for kstrtobool #include // for U32_MAX #include // for DIV_ROUND_CLOSEST, abs #include // for class_mutex_constructor #include // for __free_kfree #include // for true, NULL, false, struct_... #include // for bool, u32, u8, size_t, ssi... Signed-off-by: Jonathan Cameron Cc: David Lechner --- drivers/iio/adc/ad7124.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 5c1a8f886bcc..5d3be891fa7e 100644 --- a/drivers/iio/adc/ad7124.c +++ b/drivers/iio/adc/ad7124.c @@ -5,30 +5,36 @@ * Copyright 2018 Analog Devices Inc. * Copyright 2025 BayLibre, SAS */ +#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 /* AD7124 registers */ #define AD7124_COMMS 0x00 -- 2.52.0