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 2E73831065B for ; Mon, 19 Jan 2026 21:21:48 +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=1768857708; cv=none; b=TOLKlWXrDbRL/xi1U6fI9RtLiLynY05wZhvi285YqJX3KYxHdkADMb5XKuZn0md8IlidjzRqnFhNYcEaODvClrr0kf+DhxFFZK8kMHc+y+81RffScyvk7ZfWcplfwBeXUfV47VZEt3b1nOvyCpjCAy2A6mJfgynEGhxFHMe2Ato= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768857708; c=relaxed/simple; bh=3XugZIoI+oppjdx9JrYyR++viWQCU8JCAPwzFxVt0GI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j2V8EUQmoD0D6NsKYqqDBzcf/SAUoFI7RUWPb745GGRe8juusCWuDPVFDee690cxtgf/hm0nByWtYi9DGyxaobjcFTzDWeXK0cqAg9uBMNQn8gVkEig5FGL1ugKXkyirvci6bgNiVq6g7hzlg1nbI4z93qtITuVK/120HG88a/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P9X4VrMW; 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="P9X4VrMW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F9C3C19424; Mon, 19 Jan 2026 21:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768857707; bh=3XugZIoI+oppjdx9JrYyR++viWQCU8JCAPwzFxVt0GI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P9X4VrMWW5rQ/gV+VR/FXXSc1VgDySS52wrdIqsp68SetqRBdrxTsS5MRHrnPnc7w pTFN3t1YkxKIgICz2Qt5SzDjNnYvW0XJdkjg8cYcyjnkSvBBofBjTXqH7qi0ORcIul kzUH0+9j6qECZUU4ommYRmO6wRBFe4aaFaooM7La7AmsCV2sQIeMHOlMDyRYH3GuL9 Ba6A2hjoEmY/+NSaeno7kd2jLIcPWDd768vZdTkM5ZvvF7cFrsDlUX+ioOG+sFHUtM sGJKfPlGnBxbGbnjfzWrRsQon1xDtrvEeeTRmqFxXYl3Gf9Nz11nqT7SjBbUBJ2ptD VZOKzVUNfymDA== 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 05/11] iio: adc: max11100: Improve include relevance Date: Mon, 19 Jan 2026 21:21:04 +0000 Message-ID: <20260119212110.726941-6-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 Using the iwyu tool to help, drop kernel.h in favor of more specific headers. Also drop a delay.h and iio/driver.h as neither was used. Add other headers that were relying on indirect includes. Justification for additions: #include // for ARRAY_SIZE #include // for BIT #include // for __aligned #include // for dev_err #include // for devm_add_action_or_reset #include // for EINVAL, IS_ERR, PTR_ERR, ENOMEM #include // for __cmp_op_max #include // for u8 Signed-off-by: Jonathan Cameron --- drivers/iio/adc/max11100.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/iio/adc/max11100.c b/drivers/iio/adc/max11100.c index 520e37f75aac..f5adf7dba700 100644 --- a/drivers/iio/adc/max11100.c +++ b/drivers/iio/adc/max11100.c @@ -6,16 +6,21 @@ * Copyright (C) 2016-17 Renesas Electronics Corporation * Copyright (C) 2016-17 Jacopo Mondi */ -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include +#include #include #include -#include /* * LSB is the ADC single digital step -- 2.52.0