From nobody Thu Mar 5 08:23:31 2026 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 A69882D73B6; Mon, 16 Feb 2026 17:10:53 +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=1771261853; cv=none; b=WANRRWTEDuOKTiarJoULtCDtqoshmGWbw2TJlV9XUXq49ZSxrXoDPUhJDAw6tjH4x/ymts7Ma/Pyuqm13mMUrTCGVcx6HU3LG76Yct9xaWLHHT17nfxXFNiadReOPVilQDb7AlsStEteLGy1twJbkzvGJVZlFKcUzonw2LcmY50= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771261853; c=relaxed/simple; bh=GLo3TKV8gFTB9qN1L1dtwn16ZgzOExq0Urh3QlqIRr8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=G0Drd1wGSjYIaBJYpu/g0OnfR7H1KYtTkR1oosSezoWSSX+gs/85U29Gd6wnJyNYUCMVWabkCW0kVhuNV7s9RzmoNyW1mhGXjPpJvJVysx1bis0GU/WIEj/tVgSue0wEJvJ9D9cyY0XTX2vMXATQQAngon45T2J8EAmwEC5Mr9o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IoiBjLwd; 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="IoiBjLwd" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7FF44C19425; Mon, 16 Feb 2026 17:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771261853; bh=GLo3TKV8gFTB9qN1L1dtwn16ZgzOExq0Urh3QlqIRr8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=IoiBjLwdbUhGshcSNowLb78uJKQTHXGCVytrKyOZBGS+ByJE37lQSW2Avp7J1jBrC af5EfAzrSkFc+EcKhwIfSK4CotgKZOLSDioF4W68cjKkuiLdpugyzWbojqhhRrT6W8 JbIpzBCxbQbqcNHLZO9ZE50NEKitGd72Wa4roTRGIZfMcyeQMteMv213x0Z/wzxslr rzZkjfuRTjsSgMqWotqOxwUMqfGumcu01fkPesrLzbQLVo2NW8XOTLcXCmK5yY4T7e xXWwp8o9kvR1BBdhIt5CP1TVI//9awsDFQCWquF00aQDteRYvJOwFC4qLo6OmFDYwn pBRlgVw8mZb7g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7290FE81A5B; Mon, 16 Feb 2026 17:10:53 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Mon, 16 Feb 2026 17:10:47 +0000 Subject: [PATCH v5 03/11] iio: amplifiers: ad8366: refactor include headers Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260216-iio-ad8366-update-v5-3-7e6091357d02@analog.com> References: <20260216-iio-ad8366-update-v5-0-7e6091357d02@analog.com> In-Reply-To: <20260216-iio-ad8366-update-v5-0-7e6091357d02@analog.com> To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Michael Hennerich , Lars-Peter Clausen , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1771261851; l=1982; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=QRIp0tYYyn+DvtgLdXDkjcNw9aoRAB1xYUrQo6x2IZU=; b=kDUXOss1FYOCQTLgt76NE6wZQs9w0kmyBMAHEwlbhL6P8nJLVwnZCKqzs7yVYNesEzUickdMl AggTlzeay1iDAc8U/Y0g1GpDLTWWoolz5rR8WdgQsUAZ5KW/TF9LXdR X-Developer-Key: i=rodrigo.alencar@analog.com; a=ed25519; pk=ULeHbgU/OYh/PG/4anHDfLgldFItQHAhOktYRVLMFRo= X-Endpoint-Received: by B4 Relay for rodrigo.alencar@analog.com/default with auth_id=561 X-Original-From: Rodrigo Alencar Reply-To: rodrigo.alencar@analog.com From: Rodrigo Alencar Apply IWYU principle, removing the following headers: - linux/device.h: no usage of devm_add_action_or_reset, device_attr... - linux/kernel.h: no usage of container_of, kasprintf, ... - linux/slab.h: memory management handled by iio - linux/sysfs.h: sysfs interaction is managed by iio - linux/iio/sysfs.h: not using iio device attributes in this driver Adding the following missing headers: + linux/array_size.h: for ARRAY_SIZE + linux/bits.h: for BIT + linux/dev_printk.h: for dev_err + linux/math.h: for abs + linux/mutex.h: for mutex_lock, mutex_unlock + linux/mod_devicetable.h: for spi_device_id + linux/types.h for NULL, __aligned Additionally, those include directives are alphabetically sorted. Signed-off-by: Rodrigo Alencar --- drivers/iio/amplifiers/ad8366.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/iio/amplifiers/ad8366.c b/drivers/iio/amplifiers/ad836= 6.c index d06ac786501c..8dc639d30dbb 100644 --- a/drivers/iio/amplifiers/ad8366.c +++ b/drivers/iio/amplifiers/ad8366.c @@ -11,19 +11,22 @@ * Copyright 2012-2019 Analog Devices Inc. */ =20 -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include =20 #include -#include =20 enum ad8366_type { ID_AD8366, --=20 2.43.0