From patchwork Mon Jul 10 10:27:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 117834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4929075vqx; Mon, 10 Jul 2023 03:42:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVeDJexl+GUkwuL0USNsVrqrT/1bSV/J3Vxd7GStS3NTKHSC1qhP1lSVSrMpH52uswwKWz X-Received: by 2002:a17:907:587:b0:977:e310:1ce7 with SMTP id vw7-20020a170907058700b00977e3101ce7mr9138981ejb.38.1688985741142; Mon, 10 Jul 2023 03:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688985741; cv=none; d=google.com; s=arc-20160816; b=QMhAHXLe2Nuy8D1xZ/YcMKl0doPT3P84NtH2aeJoxnHKfCCGFBj/ky5R1azYGgCV6I RN1dcv3rW4ALFfsq4jgvYhWnW6Shrhqhu4pWicz3sJR1Ras9uhlVXBOussKh9Uyl1G3w hBN6XwusbRt0PR0/TSCu+likDe2ePNk5d0Leht8RKoM9oPgMYntjSU3ky5qynQvB+M1c 1cFp0P+PM5wC26OSFNEGdkj2NVwpVYKlEhrT48zZdBMRjwSzbR1fVb/GYQMpDqEfFN+H 0N6bM0v/2GESWtx3ImxJlsanjeJMfSxEzKlw6fYHZpwWJ1HAU3Poi2DPWXe5wV8FsbL+ NMKA== 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=2F1zJlITBWJ0pbk3kS7QvMBajMJf3zu3mzpMn1bCvK0=; fh=0+F98wGFYRypkYB2HnAQPtJBQZZGg6jGZd/5tkylhQc=; b=DKxDSuljxowThnks1ISVUYiWVIUYvtTTjYMzgDmNvrtBrNh4/Zixg4Jpaahez0uyHg 9tEPraQI8vBqCFfY2lQRcI01PxjqA5iIwKQCbNQbDA8R7sjMFoAQ+Re53Uyx7iOaTHDm G/8KgHSRbPdVd2EpSWTkibvrGyCbEl24dyo5p5+KTG8gnr7YM3+hZsVMsy8x8at6NUw5 PwnEsuGamgbkIlK/n0w4i45NNmB/9EKZpT9Ogq6Y9QNlDuWxTwb9hTfMXRiN284KX+i0 JxrgFSIoDLCfjeiPPhL85yZMskM9kJJ3qRQOPjZz2jnxeX3Tjvn10sPvIo7JdsVAHHR5 Z3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=K7OwgEiF; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a1709065e0900b0098e05d1a61csi3866126eju.99.2023.07.10.03.41.57; Mon, 10 Jul 2023 03:42:21 -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=K7OwgEiF; 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 S233508AbjGJK2d (ORCPT + 99 others); Mon, 10 Jul 2023 06:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233429AbjGJK2Q (ORCPT ); Mon, 10 Jul 2023 06:28:16 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528F8BD; Mon, 10 Jul 2023 03:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688984887; x=1720520887; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UcwkOydYrSjyDo6SStNIT6kPqq10Rd6pUpZ9iNE8Ekk=; b=K7OwgEiFNXTuAcAGjzQRfvnhAfEC/M1F7hxD8bXLJTnijOQCCQwtkvqz aCaDz9o+yKSgRRSHT9q/vsmUgbJ2Kqf7aTjF/MZgRl+IRO3jVEhma8Ma+ Y+3HUft36I1LWk+asBkVK7ZOTtCjf6JBy2iwLlGps1vy/vnrTqUIF22Wu Jeuiz1oEkByL5ILkQ+fkSEU+CF8+F/q9Rdil8W3MV4oxqEMoT4IB739ta 4/ZieGXPj6+8a2NcPAV/TPp5CY07oYG5WnZfuWSaLo3oBJ+CI/M22NKWx 5pH+vQH9v4atu3Oh6WvF3nfdXugNBe1ooSSZpal6FesgUkYTefAxTLGCn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="364345465" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="364345465" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 03:28:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10766"; a="865297556" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="865297556" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 10 Jul 2023 03:27:55 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 4C598604; Mon, 10 Jul 2023 13:27:53 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Yang Yingliang , Andy Shevchenko , Amit Kumar Mahapatra via Alsa-devel , Kris Bahnsen , Neil Armstrong , Tharun Kumar P , =?utf-8?q?Uwe_Kleine?= =?utf-8?q?-K=C3=B6nig?= , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, netdev@vger.kernel.org Cc: Radu Pirea , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Tudor Ambarus , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Max Filippov , Richard Cochran Subject: [PATCH v1 6/8] spi: Clean up headers Date: Mon, 10 Jul 2023 13:27:49 +0300 Message-Id: <20230710102751.83314-7-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230710102751.83314-1-andriy.shevchenko@linux.intel.com> References: <20230710102751.83314-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 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=ham 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771029912555041373 X-GMAIL-MSGID: 1771029912555041373 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 becad31aeea2..8e7fc0f21714 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,