From nobody Fri Apr 3 02:59:48 2026 Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) (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 887733C65FE for ; Tue, 24 Mar 2026 22:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774390402; cv=none; b=bmgjJQZQkdLkVFqP6HFJmclZrv2oggvpO9D7NkBNH8yxRwYDONz+oxCUywQGJDFaNJo+3khEFSmJ0yAAsBm9AWHv+ZYAt/+XTnWzlsf0gSed3rfBt8OhPE9YzBnc/ZjhB8XO1KyxhxcqtW47cigLDTlVKE3J5QhBhNt0eb7FyaE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774390402; c=relaxed/simple; bh=32ni6Tv+oy/kOK18mu9q4vLAUIJ8UdBbiOvv/GfppQY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X5aNvVU2LlTnDEK3shmsHWNlTf0dG25fbmX0ewE1RBhl5f+a75zi3qto6PV6qohjld7Sseg4DRljNxfouXIBOGXGXBLF9TcQGMTIbad9kuSfZbl9yhC0rcbD2E1dpPOZ87VR+0cD5dU9LG8VQ/3gpjMgZuhTwSrhdjqH6t7ZvYw= 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=BVJP/WJC; arc=none smtp.client-ip=209.85.221.169 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="BVJP/WJC" Received: by mail-vk1-f169.google.com with SMTP id 71dfb90a1353d-56ce5c899fcso637654e0c.3 for ; Tue, 24 Mar 2026 15:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774390400; x=1774995200; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5Iba95bLq5te8i3NRXZEb/Dl4RD0T54q3sNbhOaj2NA=; b=BVJP/WJCw0twk8iCUwcS8i3fmomxe1/3ox67sbiaW39JGnjfXujsqvsLs3gN5G0vMo H9D+fv3Do1l6+XcmSatZd3kZ/vbSY1reX6/Qz1XabgrOJ5HOz9zEjrMrzbaddME6IoZV hVxss+xVxRMm1ncbiFBIekSeW7p+b2um7RXtWCfegGggUN0+WtQMbBFMMZxFuNi5BaLo 7kwpv2syPOuDOORMphy1M4eSLyLGOrgZaC8wU1sa9RmgieVZq948e4Mi6VLT6JweiWH4 XdOCtf0sjrp/f1hIq702BqcRIcF8x92vDh9ftd6AC+cPxg9+kqgwU1/aCbFrdnwPQ1tI cVVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774390400; x=1774995200; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5Iba95bLq5te8i3NRXZEb/Dl4RD0T54q3sNbhOaj2NA=; b=e4aqaSf5SAgrSdyCcdmW8L/s556cVbR6h1UsiNa16Z2z6gGzDuK/1lf/2qaEJzAlsp DITgXKyy6DmWljO4v4O5GSij+3QFpr6Mo0BNb3U2uRzxM3eO+IBXzTuSKGMpVNQzD9lF 00R7cO5UfAtebqk/3jVoy55XymOjWtrOZjYRllTPPdU3Kse/l98q5kQm/ylYrSduj/+n FGhlHS5ReBZja+SGaJCZLZOh007UrEWR0ZG/eLFBX5gYStNqCOMb4RyddRB4d7aR1CGR s70OzJIYZASaDPjnj4KKUYQ/UjmlH1+YkU43U55JXtRJ/DT5jPfnzQbhmc2m8sJylAD3 X3+g== X-Forwarded-Encrypted: i=1; AJvYcCV79g4oufTQCfZy49vb6DQTNCKx0BPxDX9QNolVEF82Ytv5xKTtsk4CxUkFhc0AuHAm8/PL/sowkh5S9VY=@vger.kernel.org X-Gm-Message-State: AOJu0YwmDB6aLNdgS66kJ8zDn0V+sGxP7b+QrefPxLjUnEwtAc2MiuSK FokkIDhEj2qMCsctaLecw+f4KK/fWzOOc+0pMV3dSld2A3ghah6C92Gi X-Gm-Gg: ATEYQzwVfwZsyrk57TlDkRnpfLi4EJb6tubEmBEBAWnkO1fk0jpShY0F+wdMXXRnXVt g7xn9EAFGGV4nyfPNUqgxvdrAU09d+LT1lKd2/y2ZyFVGnL/5Auu+QjDjGiVSMP+ispC1k7WgXt hW+SI5YOjaBc78QNBvpa3CObPOSbCTzayqKcswHG4vAdYYPtYmBnBKpEsz1axt5Umq3ZBHPBXBK DBN5x+qCF4EsT5WNsb00jfhkI5IFr7VUMWqR31Tb+m2JdFgOz7HPeBUQIMcGLDAm0F52RXSgVSc 6Le+mMLwrtCw+NWvsKo6q4S1fIh5fgkEaxzUZMrgdcnjQfpwxL6lAmErX/Un+7dLushYcyWouzM lEFqAVr/8BSZY32+5nwC5enH+elJEg+ygEFgMw0yzvWhQdX7oNHKr2Sw4cXtKJSbCSYnILGdgU3 uDz2QrHmZq9xvYRF9dUlwZkush75ne6J4yfWWZq7AOgusMWhH3e0k9/cFhchxbfaZz4GhK5MK+y fej X-Received: by 2002:a05:6122:2510:b0:56a:f979:a9d1 with SMTP id 71dfb90a1353d-56d21f23a88mr834473e0c.1.1774390400346; Tue, 24 Mar 2026 15:13:20 -0700 (PDT) Received: from localhost.localdomain ([2804:14d:4c64:82a2:a42:8550:3587:59fc]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-56cddc7f971sm16808827e0c.12.2026.03.24.15.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Mar 2026 15:13:19 -0700 (PDT) From: Rodrigo Gobbi To: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org Cc: ~lkcamp/patches@lists.sr.ht, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] iio: adc: spear_adc: cleans up, update and sorts the existing includes Date: Tue, 24 Mar 2026 19:09:24 -0300 Message-ID: <20260324221313.119473-1-rodrigo.gobbi.7@gmail.com> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused includes and add what is being used (IWYU principle) and sort the remaining ones. Signed-off-by: Rodrigo Gobbi --- Hi, all, Revisiting this, sorry for the delay.=20 > +#include > Why include of.h? Double-checked, we don't need that. > For these, given we've been round a few times, it is useful to add a > brief on what is being used from each header in this change log or > indeed the patch description. For the record, what was added: #include // for ARRAY_SIZE #include // for GENMASKxx #include // for dev_err_probe, dev_info #include // for DIV_ROUND_UP #include // for struct mutex #include // for uXX defitinions Changelog: v3: removed of.h/compiler_types.h added types.h v2: https://lore.kernel.org/all/20251206132120.11059-1-rodrigo.gobbi.7@gmai= l.com/ v1: https://lore.kernel.org/all/20251009182636.187026-1-rodrigo.gobbi.7@gma= il.com/ Tks and regards. --- drivers/iio/adc/spear_adc.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/iio/adc/spear_adc.c b/drivers/iio/adc/spear_adc.c index 50b0a607baeb..b658bf1a7f30 100644 --- a/drivers/iio/adc/spear_adc.c +++ b/drivers/iio/adc/spear_adc.c @@ -5,22 +5,25 @@ * Copyright 2012 Stefan Roese */ =20 -#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 =20 #include -#include +#include =20 /* SPEAR registers definitions */ #define SPEAR600_ADC_SCAN_RATE_LO(x) ((x) & 0xFFFF) --=20 2.48.1