From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1486C35F60E for ; Fri, 21 Aug 2026 10:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787307925; cv=none; b=VByc5e8DPtuiLMhmOavZmuLqYZLEhzBHRK368uCY82Fs4oIicKI+EUsp8kU7otxdR6ShjQIwomobJULKjkKxtcSkKkWZavryHW+xXav9kILkgL0b3R7LFkQLsG9uLJ3Z7d7AnG/Rp4T20Xipf8JFgtF8F5ppawEijCI5x2F8qaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787307925; c=relaxed/simple; bh=FQ4fyjXp2OqEnkYHwsfz+TTm/oRpClpjq1D/SX+fetU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KHfuRFvwwdLWQUk9oev6TX0Ly7g5Kzy1Zz0RMjngyYAnjGdkBaV0E3L6oODCSQkLJJMbIWi4pEsbLo6taDcr9JXMUN1v1l37LpShCnfc3GjzVJG7oxokYpfkJzM9+vDiZkbB1e5XmAxWv+AeAc0hdt5yqGrHCbjM/Va4jqKtYEc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=APlPsiNj; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="APlPsiNj" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4954f5e8020so3439375e9.2 for ; Fri, 21 Aug 2026 03:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787307909; x=1787912709; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cXCIKeHXfMN8TRcCWZhE+maVe8/ByjaTIx/Ywm2GTsw=; b=APlPsiNjTWO8PlFp79CkwZjpgFsRF4fCQEGz3+9PxrvmgtTj0nfUToDDz8m4geRAWE EjnA/9Y6XoM9R/Nyj5KMCzmoVSRM/NwyAJFz8HkH0WPGuIiclCs5v76QmxymJm6ueS8Y jwiKpxQcaxXHbc0JplcwEj0xtFOybYFJwwvj4YYjOpBns/O4P/h3pUmHzy/ZKbm0G5jP vJGnVqAT8VmKAP6NzDqyFKASg+ndzhWkyj4qhiqJ23cyYGdqyPBRJB4aN18RL/1SxOvc mWfOclH05CJNzhBycfqw2MzMwixoyStvMDuJMJXgOqg6ziz8QRz/xOm1u6Q3CReE1Mgy oQgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787307909; x=1787912709; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=cXCIKeHXfMN8TRcCWZhE+maVe8/ByjaTIx/Ywm2GTsw=; b=seW85zSoEVUCPsmjlhDVRl4gJ5oCa+GaXwozzAGNdYVuPLW9oNVITZud19cfD0ynh3 6+Nv7CNS2c5kHITXP0LQ/Md5Tw/tdtuOfh+3uX293izDcR9u2n8a1VY6DfCmWaZqN5IT mhDX617n3RlYf7u8OTi+eU+Rh5x3VunNZ9BPlNTFTUGP2ygEF5B7RVlci2hfMgI/EEyw HvLvyOk+pPQWAZSE4+j7dkF916hUBGii0AzSzmgfbXrP2oCoAgyrxXEv39ZpKoPpCO6d sQh1j8F435Q42pRDK3snBwuGkKS62yweA6ttFfDj24366cyy49m4tDypfGTKt7HRyMq2 nJvQ== X-Forwarded-Encrypted: i=1; AHgh+Rpqe5NQ9QwO7rON8ttFiToqBJq2rFrxjGvIKt2gKm6o79fWv0sahVaOVqkXWT/q8/AxKECc3GLr1s42iQY=@vger.kernel.org X-Gm-Message-State: AOJu0YwKBN/RCNalBFDuYBpwdRQU/4BZ6Gk5G5utxiaa9Sq6gOIn+yYO DUVPOReLBeVp9e9kuEjpMXy8nrYv18emmQHaGwfI/f52B6JZg/l/3Z+N X-Gm-Gg: AR+sD13dWLWRRh6YmrH0nG8N1d2mMHSLCYmbyljkrr/e5a5+ARRnJNXCM6UTjWM9bXO Sjc+4r36TQz+OSHeDVkMmpsGUKKgoBhXprqvvHjPs0znzqaaOPVvIcxsRxfhgDCdO9VTgQT64Xf EiYXbYa45AsiAshpRzdwlbuZtnGzMH+twB3Qjxef713K9AKDO0BLfBOHIMg4RFupHmYS23vIXSU JBNMylPpn3yoy1/mJPuKuPPoLBQORATmvI94Vv+weg89qR6owMWpOGl8eZhMNxcsNvNZSCI+JcN 3lxdmJXoDUHkUBwKqCe7DNRMvSkhAOXv0cGiOyRhR0lDEgmczLtgi2gwIfI0CTKLZFf4NxVQJD3 bb/sGDnziwaAwcmGxMD0HHNAQnC23EPu9pSuSpxCzhnOZ46MyFsKFJe72up8GI1b5TkQusVBJuZ hM2a+cLv3EaN8WbBLOHn7EkQPC0XfhxERE3kXop18IuLHWqVE54+EctdtEKdjwYOvPi6TeJ37ZH +pSP75spAt4bw== X-Received: by 2002:a05:600c:37c6:b0:499:858f:2653 with SMTP id 5b1f17b1804b1-499b830d08emr83406875e9.2.1787307908744; Fri, 21 Aug 2026 03:25:08 -0700 (PDT) Received: from fedora ([105.74.130.192]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-499b9ba5139sm11663155e9.2.2026.08.21.03.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2026 03:25:08 -0700 (PDT) From: Taha Ed-Dafili <0rayn.dev@gmail.com> To: jic23@kernel.org, lars@metafoo.de Cc: Michael.Hennerich@analog.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, skhan@linuxfoundation.org, linux@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Taha Ed-Dafili <0rayn.dev@gmail.com> Subject: [PATCH v5 2/6] iio: dac: ad5504: Align headers with IWYU principle Date: Fri, 21 Aug 2026 06:24:44 -0400 Message-ID: <20260821102452.37407-3-0rayn.dev@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260821102452.37407-1-0rayn.dev@gmail.com> References: <20260821102452.37407-1-0rayn.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update the header inclusions to follow the IWYU principle and ensure they are sorted alphabetically: - Remove , , and as they are unused. The driver relies on devm_ managed allocations, so slab is not required. - Replace with as only the BIT() and GENMASK() macros are used. - Add and for error codes and data types. - Add for cpu_to_be16(). - Add for ARRAY_SIZE(). - Add for string to integer conversions. - Replaced with Signed-off-by: Taha Ed-Dafili <0rayn.dev@gmail.com> --- drivers/iio/dac/ad5504.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/iio/dac/ad5504.c b/drivers/iio/dac/ad5504.c index ad1a74678cf2..5c9c66b04154 100644 --- a/drivers/iio/dac/ad5504.c +++ b/drivers/iio/dac/ad5504.c @@ -5,22 +5,25 @@ * Copyright 2011 Analog Devices Inc. */ -#include -#include -#include +#include +#include +#include +#include #include -#include +#include #include #include -#include #include #include +#include #include #include #include #include +#include + #define AD5504_RES_MASK GENMASK(11, 0) #define AD5504_CMD_READ BIT(15) #define AD5504_CMD_WRITE 0 -- 2.55.0