From patchwork Thu Mar 7 15:43:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13585949 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 22B82C54798 for ; Thu, 7 Mar 2024 15:45:33 +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=gejSg0u9a5XTpQOXkku9YhqbtthIUg4h8ABuu0lFt0s=; b=aw+4rTFqeTkmiO BHtUDb6UPX6wzE7hYBwn8SgKgZIPI7jIhwzhz/op1uMWwUSOoYpl7o4Cso4l/QcHktHGHmbeSc5Et 3AO/BvwarG0rXT2L2K7u7SPeDoCemVMv1Kjd7FtHPxeEb0/3pq2N04yBfAIhxZYwlwqHY5wkaTvgQ aMyc4dXhOdZU99vabwoOeAN7TZpX3HRCsaCMZh5yLAgJogkxKM69Pk0P2JU6Vqu08yPbi+Cz6HCoK maJX7Ho7qd/lxAsa8Ckhput9soJNAmLxgTHoy8sNcX5hqHLICaTZWBOgcx/i8R8uLRaCvQIWJ6nzG s/f7dmOhVe4COZ2qcw2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1riFvv-00000005LDa-3Epk; Thu, 07 Mar 2024 15:45:23 +0000 Received: from mgamail.intel.com ([192.198.163.9]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1riFvq-00000005LBK-2mHR for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2024 15:45:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709826318; x=1741362318; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mj0GXkXy9Xs5y8Ltp8TCGwDRTY+Y95OlKnsw/V6zXtA=; b=GINdyOTcskQ4HO5w1NToHTvST2XD/0CR1HHLciclKJQOD099eP8cH/xB qcC1FUMNJOONyaIWm4LDT/xxCIXFkuxIx5kKxjEuRf/7Pa79yu9UCioBK Tjzu87Pdvb1uWizatsY8Al8E7nDhHo+wBR+Jaue675eEXAP0XmVBcn2yA fFVsH8SgT77oAsURch+PddiDl0rqr8q+/5XduD16Ioa2R8iJ7GjVB+kgU zSuJ5URwkumipDqik+Xwb2FgZP3vfq78eCIlUqWL3w05lH7dwBcJBuemm V51xzYlNRutzwhDua7ZIEwZ8qrqkJnFLCobrEYLnNvoaqSQhqHJMhRtDb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="15221966" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="15221966" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 07:45:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="937046336" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="937046336" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 07 Mar 2024 07:45:13 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id E64465BB; Thu, 7 Mar 2024 17:45:11 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Mark Brown , Michal Simek Subject: [PATCH v1 3/3] spi: xilinx: Make num_chipselect 8-bit in the struct xspi_platform_data Date: Thu, 7 Mar 2024 17:43:59 +0200 Message-ID: <20240307154510.3795380-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20240307154510.3795380-1-andriy.shevchenko@linux.intel.com> References: <20240307154510.3795380-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-20240307_074518_741438_09AF06AA X-CRM114-Status: GOOD ( 15.47 ) 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 There is no use for whole 16-bit for the number of chip select pins. Drop it to 8 bits and reshuffle the data structure layout to avoid unnecessary paddings. Signed-off-by: Andy Shevchenko --- include/linux/spi/xilinx_spi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/spi/xilinx_spi.h b/include/linux/spi/xilinx_spi.h index 4ba8f53ce570..a638ba2a55bd 100644 --- a/include/linux/spi/xilinx_spi.h +++ b/include/linux/spi/xilinx_spi.h @@ -8,18 +8,18 @@ struct spi_board_info; /** * struct xspi_platform_data - Platform data of the Xilinx SPI driver + * @force_irq: If set, forces QSPI transaction requirements. * @num_chipselect: Number of chip select by the IP. * @bits_per_word: Number of bits per word. - * @devices: Devices to add when the driver is probed. * @num_devices: Number of devices in the devices array. - * @force_irq: If set, forces QSPI transaction requirements. + * @devices: Devices to add when the driver is probed. */ struct xspi_platform_data { - u16 num_chipselect; - u8 bits_per_word; - struct spi_board_info *devices; - u8 num_devices; bool force_irq; + u8 num_chipselect; + u8 bits_per_word; + u8 num_devices; + struct spi_board_info *devices; }; #endif /* __LINUX_SPI_XILINX_SPI_H */