From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 4F6FF334374 for ; Mon, 20 Apr 2026 11:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776683353; cv=none; b=DFqipwLwM5JkI8TKSgCyVmgT7onLyTqaVyMHOUft3wW7MiD7ta6vK7Jt+wddupEHmLnEbak69aEx0x9E0wpdQJEJxJKsWdyaw3EbaXjLXc/qKzW+sL9+tXXUxZamUEsOCwydvtS/WYHKXx2n3Iz++CFX8tFTW9IlL5fmlqEQkDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776683353; c=relaxed/simple; bh=X9dWI/VxwTVt0b1JPTBKFWXeQZrwFIw7mwBm9QmmgQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VR8QFvo2Dm/wCuq7J3oQg025X0gisDGcNc41SJJxDxorSDKpZ/jczI/A6hvm+vZTN5q28Es9ahlm+P1XKbR7H8TYBSE2KG+eF1CIpwJarL813ubVTj1J1KG/8IMSRGta2dizR7O4dNJu9IUox2zY47x2xlINu/IKGA4AADUMzpw= 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=L4fNhyJ5; arc=none smtp.client-ip=209.85.208.45 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="L4fNhyJ5" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-675ab6221c4so1615730a12.3 for ; Mon, 20 Apr 2026 04:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776683345; x=1777288145; 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; bh=uQO90AiegwudsrGxT2ZVvYfLhx/rXT7hOvORupcDKtk=; b=L4fNhyJ5mM6508/3l16qFhMV+EC4jTrhyAyoMjqMD/YG0r1atJuk43foR6pQMtcsCa GZnjLQOryp3cl8pX0Rxfv4IDkL+kQn42aT7WzEeB0OvpgCf7RU96uc99wmjf4cg3yKLo a/tBGq5Dia0KY7XxYehl+PO9gfJM5z2bPcFyJgYAfOs+e7Q3G3rzJbYm3SR2JE7wgaW9 osTxPbmoSEUZAL/NB7wv2h2Yzwu6vQHc1Wk67Q56cQ5AfSIISv0BmjtgtmuWjN8d5xNN NyzEGu81tzDWfx6E2Uwbx66uE4VVD9oK14hOizUgUsPCIw5w70HRrxz88R6B2nl+gA87 jabQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776683345; x=1777288145; 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; bh=uQO90AiegwudsrGxT2ZVvYfLhx/rXT7hOvORupcDKtk=; b=giYgoVVmBn2umwycRtUbINfIQWS8nQ0Q+MxPKR7RMSBKnS1LAJNPhjsJKXBC0Ev/cJ JrLx9BgeT9Dj/dqXmgXNIHKKOMbqvxFpy5VtOXbQqn1WCAfxC6meC3UeFnHOMfR00XUs bIpH/5rjEB5ExMND3utepD+jiH8LBIKuy4CGal1H4aTVU4QiZiQR0QUn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NhzjrXW0R15h1UDlPVcwJvgL1eSpSTaAT695qAqFiFbGGrYumvSAxgL 8vFABWdxI= X-Received: by 2002:a05:6402:13cd:b0:674:5b2c:d42c with SMTP id 4fb4d7f45d1cf-6745b2cd8c4mr3585547a12.3.1776683345460; Mon, 20 Apr 2026 04:09:05 -0700 (PDT) Received: from cs-280612103108-default.europe-west4-b.c.od237066db22328bb-tp.internal (254.196.90.34.bc.googleusercontent.com. [34.90.196.254]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-672c47fe8a0sm1947664a12.5.2026.04.20.04.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 04:09:05 -0700 (PDT) From: Joshua Crofts To: jic23@kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Joshua Crofts Subject: [PATCH 1/4] iio: magnetometer: ak8975: header cleanup Date: Mon, 20 Apr 2026 11:08:01 +0000 Message-ID: <20260420110804.1353-2-joshua.crofts1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260420110804.1353-1-joshua.crofts1@gmail.com> References: <20260420110804.1353-1-joshua.crofts1@gmail.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Clean up headers by removing proxy kernel.h header and adding new headers to ensure atomicity (array_size.h, dev_printk.h, types.h, asm/byteorder.h). Removed unused headers (slab.h, iio/sysfs.h, iio/trigger.h) and added minmax.h, property.h, wait.h, irqreturn.h to mitigate transient dependencies during compilation. Audited using the include-what-you-use tool. Signed-off-by: Joshua Crofts --- drivers/iio/magnetometer/ak8975.c | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/ak8975.c index 44782c26698..f45dca0a6f0 100644 --- a/drivers/iio/magnetometer/ak8975.c +++ b/drivers/iio/magnetometer/ak8975.c @@ -7,24 +7,29 @@ * Copyright (c) 2010, NVIDIA Corporation. */ -#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 + +#include #include -#include #include -#include #include #include -- 2.47.3