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 43E852E8B9F for ; Mon, 19 Jan 2026 21:22:05 +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=1768857726; cv=none; b=pAS4AUBUVxzVVjx9bJQw3Zlc47RZHSN/Wi6e3ydko20Pffw/ReDqENkTRCCuPwJt5EgaeTgssP1gbNKwDB3ukWwUzJLA6BfKahCwgsutnovAZfowxXrjRyKaFEJP2rSeLRYKmDuQ0OEcjiVSBzUsKSOPrF/jqzC5CXYqWJxli28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768857726; c=relaxed/simple; bh=4lpDDwrcGvIkbEHaxw2T/PUYhL6QNu4em7Ce1o1c/OY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H0DsgqBBQXiBZc4+WirbNd6mod+rlAZDQJuUQ63Vb+STX8iKgRvmsnLdXLY9IpmGWHu4r8eXbHAia+KWUgBek6XQ5ulsvYId8VhhECKkxgoLlzrfQjCushpFQEI/Kr0CDyQ0OKTRZ9B6ueQDd9lccAbJeLEV0kuyT37FOAoUirE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HV5dhI+g; 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="HV5dhI+g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A22F1C19424; Mon, 19 Jan 2026 21:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768857725; bh=4lpDDwrcGvIkbEHaxw2T/PUYhL6QNu4em7Ce1o1c/OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HV5dhI+gIqfgtYf776ZVDKtm1eVBxcr1Cq3Kb4VUt6pvJcxYDSD/+ZWAKYfVvjKol JRYm5+EdxV6bbMpYesCUkbcctO3bAyt4RtBUmnCGZ2UwGh+2841V/pdqQch/tyjW0P bzzwFHLR791YGNQEg+BneMNLtrfLQFGsLdWfXZf4/y10+GXcS/dExSuMC8gUUa6wat qMjP8Ua5GsSCPH/rqE/l9DKvopi7FFxnK7G+zMF8BB0I1K9UIsKjUSvFufzuIVsCN1 5cNZBxD6VakWrqEdmqOV2GnQok3NgEiGJ8/BnKN+F91Hm0NzVJL/oGKld9WzUlLtwl 6h3eezlEqbDfQ== 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 09/11] iio: adc: ad7124: Replace device.h with more specific includes Date: Mon, 19 Jan 2026 21:21:08 +0000 Message-ID: <20260119212110.726941-10-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 Separate patch to make this change more obvious. This driver makes no direct use of anything in device.h but uses both include/linux/device/devres.h and include/linux/dev_printk.h as well as needing a forwards def for struct device. So replace device.h with those headers and the struct device forwards definition. Signed-off-by: Jonathan Cameron Cc: David Lechner --- I'm still tweaking my iwyu config, so currently it doesn't suggest this one automatically. I'm interested to hear opinions on whether it is a good way to go or not! --- drivers/iio/adc/ad7124.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 5d3be891fa7e..84da872fab6f 100644 --- a/drivers/iio/adc/ad7124.c +++ b/drivers/iio/adc/ad7124.c @@ -14,7 +14,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -36,6 +37,8 @@ #include #include +struct device; + /* AD7124 registers */ #define AD7124_COMMS 0x00 #define AD7124_STATUS 0x00 -- 2.52.0