From patchwork Fri Jun 22 08:09:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 139584 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp581530lji; Fri, 22 Jun 2018 01:11:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKslGjfM2cC29tiiPvSDYM0hjMl7vQ1xJmlyGRrRHhv9NORkUm818hbj5Tg8Gt7aTfeNjUA X-Received: by 2002:a62:dc1c:: with SMTP id t28-v6mr636547pfg.137.1529655073419; Fri, 22 Jun 2018 01:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529655073; cv=none; d=google.com; s=arc-20160816; b=DgZwqxJFtjzDVbKIphjp22K50042MoGUo9IbGYao4452N+COCLvHoiwVO1kcuZCJEi DiPDmsFKc5cSYbdz8cWo0BwYAtYoF2+/e58t+ggSk2Uu/7mQdMIQ39+U0QQnMFm7SKxk i670GeKTts5B5uXDkLKlNGoD5BWhvNo5lj3M8wnj2pIeku6Zx9b9b4nyKvFSTz5um3q8 BiF7QjX3E2YbPjqrMAaNkpXxLGDxkBCRkFBvAzxET+ZEoy28lTjXo+SLovtqq4BmM2IP tOydHvfNsNC/N9b9YJ4Aeg+0NKKXcOfWI8dp2FFJgkiFFdh6oA/ZCme8q83+q7yqLWcD xEzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=mKiddEQWBDsjx6NRHIvvE6IftcVqW5H+YgW4bj7RSJU=; b=ayWKs9dNXr1aiLmU220xtFSg1GSUnV3CqwqVQwfMMi4vPWrus7nt1RyNSLlsj0zJb1 /YVt42Hwdlyeamsa1BOLNW16X1FwZY27K8LGHpiU1YKnhfw33syRcRkY357Fx9FNVhGl nWCaOWBvpzXYg5JVDwnyliCzcMVWuK/q0Ic0kkFO6hqjlF3I19AZvwr8o//8GVqpMmoP 9od7ON0ptCaPb8cfZ9dWlyKO9XYbiwNhIY6wZXnKvfTUHTI7jTBmE/ZXOPABB/HmR+ar 7ikVSlo5rwi+yhv3P6cFWb9Jn7tmqIM0R0tOjvyMZhVfOQ7fQV9zfo7fmVQe5S1Y80cY /d6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HNs0NXN6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si7338521plb.125.2018.06.22.01.11.13; Fri, 22 Jun 2018 01:11:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HNs0NXN6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754389AbeFVILK (ORCPT + 30 others); Fri, 22 Jun 2018 04:11:10 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34293 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752611AbeFVIKM (ORCPT ); Fri, 22 Jun 2018 04:10:12 -0400 Received: by mail-pg0-f66.google.com with SMTP id q4-v6so2640767pgr.1 for ; Fri, 22 Jun 2018 01:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=mKiddEQWBDsjx6NRHIvvE6IftcVqW5H+YgW4bj7RSJU=; b=HNs0NXN6Ng8OmwqRMgMlx0l9e1Zs/10ib/zbBHfhdtugYJKZbbRvtwggReBmZy4GI+ 6Wr5O7tW+/nmqjILFWA7yFLcna+4Wuf1/RkUZS2mFFZ1J+jK/vOiXpziNMCvjOnf43he nVdA8RSqQIG7nGptRsZE9nHYxi6Aqilcqlb5c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=mKiddEQWBDsjx6NRHIvvE6IftcVqW5H+YgW4bj7RSJU=; b=tm7fW08K32IcR6mq4UC2z6kl4zmEvKKKb7JtAQl1Pce4wdTrC5M50yPesCXEFTaBRm gGBtGcwDS9FrPmA2ctbXm7B0Yk/L/UZJa+SZx6+8Zv3Ubp3EHsbQ8K23viFQlvDxi1ME 7d0bJl5Y9qe+vPDbqvOUTADC3BnnjOtaPFXeOSrBhrvc/E4Sie8gF15Zdzu3bFd520fi 3QcuplPkzYLCYR4evsaXngqCbe6U0wYSeVkRDpOYIQUfg8oxPesifTOfkJ8ZBOPnnmD+ bOwiJWjTYlK0Yj6Kj5nynMpS3PyNumf9ntkG4D4T0ZSR9PvsPrqfR3wt00vGDgfYJEtu PJIQ== X-Gm-Message-State: APt69E3RQGG9zy98XMc+tz1WT7kIC4Ax86tYA7e4LlHEYkm7y3xmr8MD 9Hb8dL5lr/DlzAnN6RTIsLgOJw== X-Received: by 2002:a62:e117:: with SMTP id q23-v6mr645775pfh.75.1529655011469; Fri, 22 Jun 2018 01:10:11 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id i65-v6sm22656131pfd.17.2018.06.22.01.10.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jun 2018 01:10:11 -0700 (PDT) From: Baolin Wang To: ohad@wizery.com, bjorn.andersson@linaro.org, broonie@kernel.org Cc: baolin.wang@linaro.org, linux-spi@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] spi: sprd: Replace of_hwspin_lock_get_id() with of_hwspin_lock_get_id_byname() Date: Fri, 22 Jun 2018 16:09:04 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now the hwlock core has supplied new function to get a specific hwlock id by one hwlock name, which is more clear for users. So change to use of_hwspin_lock_get_id_byname(). Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5 Acked-by: Mark Brown diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index 6fc50cf..d8d5e2f 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -459,7 +459,7 @@ static int sprd_adi_probe(struct platform_device *pdev) sadi->slave_pbase = res->start + ADI_SLAVE_OFFSET; sadi->ctlr = ctlr; sadi->dev = &pdev->dev; - ret = of_hwspin_lock_get_id(np, 0); + ret = of_hwspin_lock_get_id_byname(np, "adi"); if (ret < 0) { dev_err(&pdev->dev, "can not get the hardware spinlock\n"); goto put_ctlr;