From mboxrd@z Thu Jan 1 00:00:00 1970 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 6B48EC54798 for ; Thu, 7 Mar 2024 16:51:43 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qwSwe/ADknrMyiwYBYAcx9VJBgUN6P1DL72gXBpvG54=; b=HJebNIB6Xu7juZ Bq3nqlkUGMXpa8nQGPKMNOVZy/nkGXAYXwM6vVQdRf09YZncitsWUy5GMAFNZBgnwqScP3g+QtKHk JAyt3AXWSQFkwmWX2TzpAwKuDOso46OOtec5IJHRA7fYSngccW7WEWcTiul/EBsWy3dOPXfGDDMQR IEe4ZD/OVzax5vGPnGqGSy+8lpNSo9SzjRkK47cno7TEiAPqBhmTIUVo5x5gmg/C5s7OeEdDVgPeQ 0pAbqy7EuzgFSUq66+ffUAOaQla5jLLO0HJnm5d1P/rNwLLC+pOZ3TEBCHOldtuE7pNn23Na5W9aR ++KlTnCs9LYnpydCl2hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1riGxw-00000005ZKJ-2gRm; Thu, 07 Mar 2024 16:51:32 +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 1riGxr-00000005ZHJ-1Sbr for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2024 16:51:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709830287; x=1741366287; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ITBR+JQjgwxGUmINz/P8/aHsgmaAee3FMOYne7O1USA=; b=CE4+hIOODq8cjqEIm/Dneouo7aiMhgme0/j/Kp0vlHFJt69vC9oia9ax X2GBXkZe5FPSGiiR6YQQVnJYZ/YA4OV2Xh9MzpNt/VXk2OCfO9mR+TD6N L4vQzNmRHdJnyMQXmme+d0Y748YPCMkwjeKpBsdp0hQyrYlFeGvyykwf7 g8FgZlqAgXV/x0C6iJIKYYHCynnYoOZ1+IjTGSj6PhrW6+VwxP2IKVNbw z2rpXxcmt3QXSqFsSatsFsVnaZrPuYv+ZGG9R6BncnPv2EeWpHnmZjH3D xx7udUJ7eFj4mSC+nVUg/pPGE1TzB8URMYr96CnempCGi+D3GLfHwEHnh w==; X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="15233744" X-IronPort-AV: E=Sophos;i="6.07,211,1708416000"; d="scan'208";a="15233744" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 08:51:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11006"; a="914219365" X-IronPort-AV: E=Sophos;i="6.07,212,1708416000"; d="scan'208";a="914219365" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2024 08:51:24 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1riGxl-0000000AcRd-3GkP; Thu, 07 Mar 2024 18:51:21 +0200 Date: Thu, 7 Mar 2024 18:51:21 +0200 From: Andy Shevchenko To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Mark Brown Subject: Re: [PATCH v1 1/2] spi: pxa2xx: Kill pxa2xx_set_spi_info() Message-ID: References: <20240307160823.3800932-1-andriy.shevchenko@linux.intel.com> <20240307160823.3800932-2-andriy.shevchenko@linux.intel.com> <1e2581ba-f7ce-43ad-8e32-c62601c8f5c9@app.fastmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240307_085127_520577_DF83AF86 X-CRM114-Status: GOOD ( 20.36 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 07, 2024 at 05:47:56PM +0100, Arnd Bergmann wrote: > On Thu, Mar 7, 2024, at 17:42, Andy Shevchenko wrote: > > On Thu, Mar 07, 2024 at 05:30:10PM +0100, Arnd Bergmann wrote: > >> On Thu, Mar 7, 2024, at 17:07, Andy Shevchenko wrote: > >> > spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices)); > >> > >> I think the normal interface these days would be > >> platform_device_register_data(), which does it all in one step. > > > > I'm not sure how is this related to the SPI board info registration. > > It's not. What I meant is that you could use > platform_device_register_data() instead of the > "platform_device_alloc(); platform_data = info; platform_device_add();" > sequence. Ah, thank you for elaboration. > It should be a safe conversion, but it's also fine to stay > with the existing version if you are worried about regressions. Yeah, I prefer not to change it here (as it out of scope of my little cleanup series). -- With Best Regards, Andy Shevchenko _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel