From patchwork Wed Apr 3 17:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13616521 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 016D1CD128A for ; Wed, 3 Apr 2024 17:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YETxhG54z41zCs7hj/qvZzo7xvSsJd/qIvNgg2FA1m8=; b=uYoqzPsNPPR7DS 2alUFuZqEa6Y817hoWC0mEPII5avFgyQHAhqBBey1C7EcxpmM/z70Avf49g9mYY1bF6pUFQqe/ebg uvl4SibZwupUoGgrbzI5oQSGHx/FnrjPDOmEqPupVr+rWUP3b0tdrzv+wi1iZAEOT46D32I3BoE/4 SAcT/6CjYRNpPmfrs7WRl6zATvicXXifazxDDXT53TYDOD0hBncNFCJ+gV2Cu+g1y5zBih1RWZB05 CfvhQT+fSQSqf9Tf2Js+f7h+sfgfOAO9SWD5gZHr84CjQhX0+Eui9p6M7aSzMQV5l/spI2M3XktBr pcXSWlESHJzOdNWJWphA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rs4DY-0000000H8AM-3P5d; Wed, 03 Apr 2024 17:16:08 +0000 Received: from mgamail.intel.com ([198.175.65.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rs4DS-0000000H839-0HSU for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2024 17:16:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712164562; x=1743700562; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=me4cMeii27/KaK0gEtLaIGUNWbUm95Gjy18PkqtFUnE=; b=WuMW7DEXr11fYY7v240xIDitO3vCj3JYRMLJmXTBpG+3lrBFSFoCjRhL QOBdZie5kko97yyF/pCSzsfEk4qWUF1QkUo102fkJfZDs269Mw4K7ZGMO zyWAmlR+Gmn8Cn56jEdfsry9L3GnNtrSRYrQLNOWsqeI+Y9jihAXe6hSc 0a4L8OC7PBczCXk0pWTb0ubh1KbfVuKjrbO8xAwc1iuTwRMBhTLZgA4o2 kAzjYi3mJPL8/7XwVh8riUQZFBTRYFbe7jxqFrE8AP4kgmCwM7R/yc7c+ n9j6mz85YJeHw57ipsIbq/XJL4mKvZk+Tbu4V7MBHfy5csPCc4+XfOXBh g==; X-CSE-ConnectionGUID: UfEl+DFiRzWfniqUQlLPuQ== X-CSE-MsgGUID: ad4f+inhTS6YWfs/8nAgNg== X-IronPort-AV: E=McAfee;i="6600,9927,11033"; a="18863580" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18863580" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 10:16:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11033"; a="937085342" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="937085342" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 03 Apr 2024 10:15:57 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id CCAAE812; Wed, 3 Apr 2024 20:15:53 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown Subject: [PATCH v1 5/5] spi: pxa2xx: Don't provide struct chip_data for others Date: Wed, 3 Apr 2024 20:06:39 +0300 Message-ID: <20240403171550.1074644-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240403171550.1074644-1-andriy.shevchenko@linux.intel.com> References: <20240403171550.1074644-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240403_101602_281522_05B2B130 X-CRM114-Status: GOOD ( 13.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now the struct chip_data is local to spi-pxa2xx.c, move its definition to the C file. This will slightly speed up a build and also hide badly named data type (too generic). Signed-off-by: Andy Shevchenko --- drivers/spi/spi-pxa2xx.c | 8 ++++++++ drivers/spi/spi-pxa2xx.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 030afb17e606..efe76d0c21bb 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -66,6 +66,14 @@ MODULE_ALIAS("platform:pxa2xx-spi"); | CE4100_SSCR1_RFT | CE4100_SSCR1_TFT | SSCR1_MWDS \ | SSCR1_SPH | SSCR1_SPO | SSCR1_LBM) +struct chip_data { + u32 cr1; + u32 dds_rate; + u32 threshold; + u16 lpss_rx_threshold; + u16 lpss_tx_threshold; +}; + #define LPSS_GENERAL_REG_RXTO_HOLDOFF_DISABLE BIT(24) #define LPSS_CS_CONTROL_SW_MODE BIT(0) #define LPSS_CS_CONTROL_CS_HIGH BIT(1) diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h index 5f741bb30240..93e1e471e1c6 100644 --- a/drivers/spi/spi-pxa2xx.h +++ b/drivers/spi/spi-pxa2xx.h @@ -75,14 +75,6 @@ struct driver_data { struct gpio_desc *gpiod_ready; }; -struct chip_data { - u32 cr1; - u32 dds_rate; - u32 threshold; - u16 lpss_rx_threshold; - u16 lpss_tx_threshold; -}; - static inline u32 pxa2xx_spi_read(const struct driver_data *drv_data, u32 reg) { return pxa_ssp_read_reg(drv_data->ssp, reg);