From nobody Fri Dec 19 13:27:16 2025 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 D18C92DF137 for ; Sat, 6 Dec 2025 13:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765027291; cv=none; b=UGAQo99vSn30U+2+bm+K1JxSh1c6hixa7hh0a37CRK+sP5Fv7EixQPZ2NI+KDlLzGnCKk3DjSRUCM+hqLajudVVbi9dW1oiM7YXuiogL6nEQAMC8BUxAbzVKZyfZq8kg0fX6ZPjgXfKEARauGp4UuLVyhIBcL3Xi47d5ACQLmJY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765027291; c=relaxed/simple; bh=Lww+yXkv84Z2x7JuyrMDF39vIQnHv97nmHrcLywabYw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nskdQoFKcO9ql+eKlBojwZa/tFgqJ1O4R0T1POQrfuAfm+ht9lkGcqObG/zfq75Hp4Yk04nHRSUT6ewbDYBVZSuOTo1gK4AhCZ/hzhvji6BaOme+ukOi8xDI7aNMn/go+hpntFRCx08IB8JxfP/ypH/2E5jZfZ8vSPD7uj1ISCA= 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=F+ORO6uw; arc=none smtp.client-ip=209.85.210.177 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="F+ORO6uw" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-7aae5f2633dso3456942b3a.3 for ; Sat, 06 Dec 2025 05:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765027289; x=1765632089; 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=Nos04M0pa2LslD0D1DYgtCwpYjHoIWNMKb8Kgv78Dgk=; b=F+ORO6uwj42cUedwCHirUVEOKjPf5XIj74eQ9P9j0AKxNosB2YTgebsped2oe3scFF uqM5LfIQUNi/iA/Esr+UfE3AgFPcs8J0fbMrxi3EpboCaBdNYJqbMABy9fUWAjWyxlqq kF3bEVGlVyU/ug4B9DaANCMOUmMNqMpkPWfhgMz9ZbcBjjcMyAVRf7DOS7JjxpnEkCWb /F/BiHM1eV6Ut4MX+lEJY54xjArYd36A9wg0hofFZRdXp0ynuBARsWWgcpBvyW4Sd26g qCxp0T5Y2jmu6Q413W9F5BaZ7I9wtSItxIUVi/NfTvv1TAit33cPNmzta30l53qxZGnv F0Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765027289; x=1765632089; 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=Nos04M0pa2LslD0D1DYgtCwpYjHoIWNMKb8Kgv78Dgk=; b=NBjqo6HGPeXL7y7IXlPnIwHU+83GvCyc4UMltNZnL2I49UTyga05rInsvk7p11n1oM lKc6dOnAuXLjtn3EF0mfbCFG98Mddb/TaUkx6RS01OIJfsyVLTeMSyjUx5/UoNlHNWgs sHnmH06ZsRWG3LM3HP2aG7EylY9jChZ16z3kauiWqqYVqLUkBTUbzzJbLufd0HMt5pNs F+8Q1PhoVduluFMjz1RSn0K3GVxUGLcePviERzNwnlbdZXe6TwlXn15r/+na0Oh5C38r /TUsBPKdSdxeckSGPywARNVPGdOlHx+HKY5LjHhYbj54aEnSrdeqnLUCRKSdbRuAdhuq dyoA== X-Forwarded-Encrypted: i=1; AJvYcCX2wltTo6g19FFaWLn/bxmfJ68s4UyuO7mEFkGXmoUQDFazPfKb72aLqficHPOQkqFKwvq85cJ9b6gv6SQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzC2Ume+5LD7YPfABP9pePDPWwCluwr1jP8rY5kEd+tGsynPoLf 0uA4SmfjUeGwiEixGuIVMK072KRmWtm9OSf88wD6jpGxlsr9zef4hFHY X-Gm-Gg: ASbGncscttRC0tZYj3R5MmEyqRp/ntFw3wXgew9zSs0poHGe0MBwqDpyP/OCCGOXy60 ngiP/94vxPOsxlPltoKljWkpKO6rXL9kuwRaM0HBgYCSCdTuetiScpif7io2U0Uln9uJKvtC1Qq SH3h7oQrx6cpu1FwlvilDnnyl13rslUusXijmuf2jTUm+T/LxY6q5/zC3H9A4HBGG2zdZIK+VTN iVLs0NQU1nsWPSH7uAZFH8DD8YGSXry+33AtgvbRbZsC/mUV/L4jsEfquSQ9T3mk7fj7ikO+QMy 0jWPvey5m7S0SZ32kPc/PzPDjUMb7Xpp41xu9oHNfH16JINgUsfXK2cQme5d7c28nWsE2Sa/Yfs VX9JgRPjLZ9q+6Of3FhmmNoxQQBsi3VFwLOh7m/ySSva5GUDTs/xG3V+eUUeGxlBBrzg4b0y905 p7cQ6jAtZ4G6sTBmtis9pZ/UWby27vctZ3nVJASrwr17Ec X-Google-Smtp-Source: AGHT+IEQ1Pna6hw0hhA30acz8/XGqWS3edWt641yZber/JrMfeUcbedx4iY9SsPIBWurgUCK1pw1Ig== X-Received: by 2002:a05:7022:4284:b0:11b:7824:5c97 with SMTP id a92af1059eb24-11e032d4208mr1645688c88.40.1765027289022; Sat, 06 Dec 2025 05:21:29 -0800 (PST) Received: from localhost.localdomain ([2804:14d:4c64:82a2:4ba7:7b91:594d:8d90]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76ed82esm33437925c88.7.2025.12.06.05.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Dec 2025 05:21:28 -0800 (PST) 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 v2] iio: adc: spear_adc: cleans up, update and sorts the existing includes Date: Sat, 6 Dec 2025 10:15:12 -0300 Message-ID: <20251206132120.11059-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 --- My reasoning was not correct at [1], tks for pointing that out @Jonathan. With that in mind, I've reviewed some discussions about the principle and I`ve changed a little bit approach: I`ve inspected the source code again to find out what was being used and also checked incorrectly "indirect inc= ludes" using the spear_adc.i file to avoid them. The result is something like this= now: Removed: #include #include #include #include Added: #include #include #include #include #include #include #include #include Tks and regards! [1] https://lore.kernel.org/all/20251009182636.187026-1-rodrigo.gobbi.7@gma= il.com/ --- drivers/iio/adc/spear_adc.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/iio/adc/spear_adc.c b/drivers/iio/adc/spear_adc.c index 50b0a607baeb..b9eeed5533c6 100644 --- a/drivers/iio/adc/spear_adc.c +++ b/drivers/iio/adc/spear_adc.c @@ -5,22 +5,26 @@ * 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 +#include =20 #include -#include +#include =20 /* SPEAR registers definitions */ #define SPEAR600_ADC_SCAN_RATE_LO(x) ((x) & 0xFFFF) --=20 2.48.1