From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 4378C2F5A12 for ; Mon, 20 Apr 2026 11:09:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776683352; cv=none; b=qR9Shdjy1+GlSvWtGi7pcoo/n6vkFuX0PDOQa9dA/g0aUPpkIvrciHIj6v/lypvnCLdZza/rdLKbT47Axm4V0kPCEarsb2hiHm3EH2VRVfg47xvOvBpZPCF3sxJv+KvRaQIdhN1G532wPvE8C9KL2ylDBKb2tsQco/bP0KhGU8Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776683352; c=relaxed/simple; bh=X9dWI/VxwTVt0b1JPTBKFWXeQZrwFIw7mwBm9QmmgQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TfUN3eJnslx4VbsijZB8MswGTxlJDFD8BK8uGwHQ9xpBnVhjau/oLcum0xuSf0RMdyo5c5iiGxEPvtegAKwxZO7t/k09f1KMUZhI7c+YSAQ8GsKEKSncN+MF/5+HIsfPXuX1gpN6wfBzXI71YtTquVpVE38wbCwzC6qw+lNrJus= 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.52 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-f52.google.com with SMTP id 4fb4d7f45d1cf-6763cc87780so833098a12.1 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=hIVuzFMDaHlM89oo15bFpZpUqAyDD+VKGm1WHXN23+UUzPgG4GzBxaEHAt6L1O9fwT eHVzjH0sQYKWEnsIcw3QJCP3UDsuLfpmc7XGGOEEhAtRG8VzH+JdxsQTZS/ajme0vB4T vBWW9eYJ9iissbnRPrixXVVwM8E2QjJuabxlSYmrxWeBOpbLYzzVOvH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sV8z2aU6ALUipgY1bskKUOWgs33vmPvR4rqylyvwwuh+g/hTSL4j6U73KfG7shwLp++KK 7E5YGTy3U= 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-kernel@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