Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35551665rwd; Mon, 10 Jul 2023 09:02:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlGYz7qxJzt0fhvaC6+Vhl0Nw7SdeYKZ7B2D+XhXQaLDNnK3D+IPzW2myL9uCtkeuswMmVDQ X-Received: by 2002:a17:902:7c82:b0:1b8:3e15:40e8 with SMTP id y2-20020a1709027c8200b001b83e1540e8mr12092442pll.56.1689004929364; Mon, 10 Jul 2023 09:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689004929; cv=none; d=google.com; s=arc-20160816; b=HnAObTjZL2WpIc3m8TeQftpJ7/qJFQHnDafr2YVM02rjbkuCwMihwexysET3NV2bMr 0B92ggAzQFSAqUs0tYb87COUOAem4Qy3Z/ULz06NrESL6fVHbRZYX8y+gC/5+6KrHDWj lCkGhdzIlOuAGO4rrn6CmUpVDdbh87qO99SNT/tTkci5uigwTD/apG5zcnZSkGihzzbn CqqpXlwVkEitO9Qo4FlOpGbctP8WPoyP2JeKiaBJryZVxQzmFaY8zfWT/umU75SdaDZD fFKw2EK36ef7RbGWRioFyXH7naJ7fK6rF+4Y9MmvmeGTD2u6yzChfv6LcqM2umAauJkv +Wsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7+E5h/3KfyYlvQoSV523/vEMiTBzry7vfI4d7ZX9BSg=; fh=CWfEt6/vd4IsHMc+T8W3bMkH4b5uOoX72TeJSijIGlU=; b=wJK/l+beaajlm5+Q49mES/exd/KcwjbyJLxfPhw7LzLamf+RFJ7Lw8gZ7rWsk67d/P XIeRBMHQCjinCummTP2tK3WOGmvKXfwiIrRSpYFhUVRIvRtsP1dqVycVEEheEoDapbvF 8LSBUUDiAjeHaJTRFJpr+sz2ofRi3s5peoOnVkj4BS0YxzooHksIFA6RoeWWqE8zX80b Zzmbi4r7Hl2jRJtZcqsD/ejw5O9a3Jbru9/keafNisw7N0owop59OPXV6fNXpAHYflpt 0rvDtvvjAj2bYu4uLrK7ZrEGYB38eBV3IHRIUX/j5N7SP6HtsCn4P/Hhu/ErcvVGWQfk eb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xhe7Uc3b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a170903018900b001b86deba2fbsi43410plg.605.2023.07.10.09.01.57; Mon, 10 Jul 2023 09:02:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xhe7Uc3b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233654AbjGJPuC (ORCPT + 99 others); Mon, 10 Jul 2023 11:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233562AbjGJPtu (ORCPT ); Mon, 10 Jul 2023 11:49:50 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CE4C194; Mon, 10 Jul 2023 08:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689004188; x=1720540188; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eCA4jmpHdK4tCQy+WYVaMHkZ61alyGNaPi2evxW0e9A=; b=Xhe7Uc3bWEFAN7lTH3RBzaljG/Fz36zbn7OKy5oU4TrvfA5Ud/5M7hkU oQnmtNIPm+s7VmlHK+IYqbqRVymvGWNefM8fWm0XyUiL1uTUR4IYgd9GF ZBmE09Qzq/nxtAgf22erwg3StRH5OBXMFD3jtepn/ff0ZH+f8iOALlDno n6vvCLCVy2LguzMpQgEWwD6sP17tJl4IMAXxo/LKHUPQ/FqYn3iJ/gtbx VysSzGU4T91AAH5NWHk0aR4ymr1+2Itze/L1OSnxhjzTa2iQ08Xh/SOTO 8mSdyodJxNsQlokgzsoM7HsowdViZFNXJQQYD2i9sTsfOuNQ+uKZcodpE g==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="361842484" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="361842484" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 08:49:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="720743959" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="720743959" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2023 08:49:35 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 9C17069F; Mon, 10 Jul 2023 18:49:34 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Andy Shevchenko , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Sanjay R Mehta , Radu Pirea , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Tudor Ambarus , Serge Semin , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiko Stuebner , Palmer Dabbelt , Paul Walmsley , Orson Zhai , Baolin Wang , Chunyan Zhang , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Max Filippov , Steven Rostedt , Masami Hiramatsu , Richard Cochran Subject: [PATCH v2 08/15] spi: Clean up headers Date: Mon, 10 Jul 2023 18:49:25 +0300 Message-Id: <20230710154932.68377-9-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> References: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a few things done: - include only the headers we are direct user of - when pointer is in use, provide a forward declaration - add missing headers - group generic headers and subsystem headers - sort each group alphabetically Signed-off-by: Andy Shevchenko --- include/linux/spi/spi.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 2026eae97329..c9479badf38c 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -6,27 +6,41 @@ #ifndef __LINUX_SPI_H #define __LINUX_SPI_H -#include #include #include +#include #include -#include +#include #include +#include +#include +#include #include +#include #include #include +#include +#include +#include +#include #include +#include + #include +struct acpi_device; struct dma_chan; -struct software_node; +struct gpio_desc; struct ptp_system_timestamp; +struct software_node; + struct spi_controller; -struct spi_transfer; struct spi_controller_mem_ops; struct spi_controller_mem_caps; +struct spi_device_id; struct spi_message; +struct spi_transfer; /* * INTERFACES between SPI master-side drivers and SPI slave protocol handlers, -- 2.40.0.1.gaa8946217a0b