From patchwork Mon Sep 2 12:59:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Yingliang X-Patchwork-Id: 824806 Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0CEC20FA9F; Mon, 2 Sep 2024 13:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725282005; cv=none; b=X0gO+dyBTAiCI2F3HWOriiFoifGf+OOl0FO9oSx32kRDcQD6JBmc8do/AvuCM5T14PGboS7gFCyedoJENjqIxRBMPc1JemUHDPQDM0LXZhk2yT57DJORtAhr6479RJZ6XOx9uIoH/+kfMP61o4bN9LakCjkdGO+i7IBQZzlP/Pg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725282005; c=relaxed/simple; bh=rGzTvVLiljT4KG9imlUlinXDJOPWsLYww0MG7UXluZw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TrtH4Jz9Miof3VoM9qvcccbbrz20VMMAoqxbEAF4/1i9BgdoFeb2N6IxNFUK3o+EXep0bovg2bvvqF1zwrtXrS5Uf5kkdjXgpdLsCYb+K4lh++zefpXuxHZs5gPo/xztcE0ulH2EGhlEWU8/COLiyL9M8ULjDqJL2R1vfOVCYgQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4Wy83g2wchz4f3jHn; Mon, 2 Sep 2024 20:59:43 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.128]) by mail.maildlp.com (Postfix) with ESMTP id 4CFA51A1A18; Mon, 2 Sep 2024 20:59:58 +0800 (CST) Received: from huaweicloud.com (unknown [10.85.165.202]) by APP4 (Coremail) with SMTP id gCh0CgD3KsfEttVmOJPAAA--.25304S10; Mon, 02 Sep 2024 20:59:58 +0800 (CST) From: Yang Yingliang To: broonie@kernel.org, mchehab@kernel.org, Jonathan.Cameron@huawei.com, rmfrfs@gmail.com, vireshk@kernel.org, gregkh@linuxfoundation.org, deller@gmx.de, corbet@lwn.net, yangyingliang@huawei.com, liwei391@huawei.com Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-doc@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH -next 6/7] staging: greybus: spi: switch to use spi_alloc_host() Date: Mon, 2 Sep 2024 20:59:46 +0800 Message-ID: <20240902125947.1368-7-yangyingliang@huaweicloud.com> X-Mailer: git-send-email 2.46.0.windows.1 In-Reply-To: <20240902125947.1368-1-yangyingliang@huaweicloud.com> References: <20240902125947.1368-1-yangyingliang@huaweicloud.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: gCh0CgD3KsfEttVmOJPAAA--.25304S10 X-Coremail-Antispam: 1UD129KBjvdXoWrtw17Gw17ZF45Wry3AFWkWFg_yoWfKFb_ua yqvw1xXryUAFyIy3sI9a17u3409rWS9r4v9F1Dt3yfXrZxA3W8C34vgr43K34xurW3Gr13 Zr9avr9akw12yjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbg8YFVCjjxCrM7AC8VAFwI0_Wr0E3s1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l82xGYIkIc2x26280x7IE14v26r126s 0DM28IrcIa0xkI8VCY1x0267AKxVW5JVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4AK67xG Y2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14 v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAF wI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvY0x0EwIxGrwACI402YVCY1x02628vn2kIc2xKxwCY1x0262kKe7 AKxVWUtVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GF ylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Cr0_Gr1UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxV W8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUvcSsGvfC2KfnxnUUI43ZEXa7I U1aLvJUUUUU== X-CM-SenderInfo: 51dqw5xlqjzxhdqjqx5xdzvxpfor3voofrz/ From: Yang Yingliang Switch to use modern name function spi_alloc_host(). No functional changed. Signed-off-by: Yang Yingliang --- drivers/staging/greybus/spilib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/spilib.c b/drivers/staging/greybus/spilib.c index 0e4ae01eb00f..24e9c909fa02 100644 --- a/drivers/staging/greybus/spilib.c +++ b/drivers/staging/greybus/spilib.c @@ -490,10 +490,10 @@ int gb_spilib_master_init(struct gb_connection *connection, struct device *dev, int ret; u8 i; - /* Allocate master with space for data */ - ctlr = spi_alloc_master(dev, sizeof(*spi)); + /* Allocate host with space for data */ + ctlr = spi_alloc_host(dev, sizeof(*spi)); if (!ctlr) { - dev_err(dev, "cannot alloc SPI master\n"); + dev_err(dev, "cannot alloc SPI host\n"); return -ENOMEM; }