Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2550804pxb; Thu, 11 Feb 2021 15:51:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcnvtIfi6MZU/3lGGOftC07vg5DksboGrjP3mL850jHVsNGGF6CauSNx1cv1rMjNwBtWr+ X-Received: by 2002:a17:906:854d:: with SMTP id h13mr206468ejy.124.1613087503970; Thu, 11 Feb 2021 15:51:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613087503; cv=none; d=google.com; s=arc-20160816; b=TkaTJ+AH6rI51rODx+Asnfo2nJLCWKdNkxjBCZl1mW4QqLM0LPNSUDWIH1ecjxP1fu mb67OGKK/GiaSuzad6CAmeByI7HbS48IZ1DElJsnPDPUJVlC/z0A00UBjGrHnF9VUak+ fYxikkddHl8kdHjMuf/kp6fpMY7NSAVWeiOP5LQ8+PcxmbgODQGTCTODhEjqXhCCCGk0 GTZVpVy9SH6Xy5Tfost2A+EOtS1pcwSdj9kGdV+mD326rfBvxh1jeh4YQXaElgdrXlyU IfyYpYTz4eBOMvePWSse6V9GSq4n5JtgKHQ/tHXBITIIy5FmlaGWpHKDcOG9L01RlScr qkXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YVwpD5CH0CelKEAwKMStpJEFTfFplMOWTWmoESYAzz8=; b=aX3LBEAEta/akgd7Xb82wjBOBf+QkJjPkzE7lzB9r4ih9IPcl8BliUoJNEfcwNnoO9 7bt+MTAlin1HbyMMm+VCunJsyNENKdG7MDZt7tQZAxVgvzOGmgEnCTsh7grEnBJMEocB VWBLeTpxYsB8Rag515fbdMg302cpAjz9s3cuP19UJrBQTEjAqZuNFnPBbKugd/ahQ2Cm fMqhaHYHN6Z2YdYe2CIcI+K0UK9fjFtvIfh8qgcOYfBccGVLfcIHqDIkN5rxraJEU2hz MSSxFJZ5F9yr7rypLsmtR6hnZd4GgZD5B6sji1jUvMQXLCAqQr5KLW7I9RU2hcJSLQ0k Nxkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DGff/4uu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w6si5016017ejq.394.2021.02.11.15.51.20; Thu, 11 Feb 2021 15:51:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DGff/4uu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230364AbhBKXsq (ORCPT + 99 others); Thu, 11 Feb 2021 18:48:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbhBKXr2 (ORCPT ); Thu, 11 Feb 2021 18:47:28 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 519BFC0617AA for ; Thu, 11 Feb 2021 15:46:33 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id o21so5051181pgn.12 for ; Thu, 11 Feb 2021 15:46:33 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=YVwpD5CH0CelKEAwKMStpJEFTfFplMOWTWmoESYAzz8=; b=DGff/4uueqBV64J8FXV9C0ktQMhytE8fE22awY+TatRLv7FtkrA9Kc4tsYtLKKxuGP o+R4IYpmLgqG8eKjOJNHvNKlvg+61tr7X7z8xJJm4J9NsxD4vK1cDtG/ZOQNnEUvUrea crEz+54bwN5hndjqALVOZNbtmdr8F3iltsshLoIn+XQoXgE6G7lQy54ZHGf8IdCfSurQ 8tXivkh3iagEJK2EatWZb9OH197Z36fRCzCk1UhXswAPCteM+Nja+5jdSmHsly0y/coo loDLJUJicOHvHdV14lDI/MB7ot7io9PYT/gcK5V9HBvaFSQ/Zkd7K6EMJGJKohCLr6QQ P2IA== 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:mime-version:content-transfer-encoding; bh=YVwpD5CH0CelKEAwKMStpJEFTfFplMOWTWmoESYAzz8=; b=JhfHv4V/7YfBCdf7+pahn+YjTFHOphHQfYmjCRM+7aD3FSh8pkzTMhcZyIwidasfcN G9/t2AQpxPQui69Hcmaqsi8gkdja8NjhbLb07YYz0PIlqGuqhMvlfL3qM98Rh0sdAZcx VTgoecpqfQrPknH7XPcZBXfEb0zcSSM1rxh7XmGspCzbH7cSTg+juzc1wfmWvGOosGXQ O7JrKdM+3a5shUaPFx5rOMDHgH7jS5oqa8+tTDSYAh2YBKzK97n7W36G8wlDcDE/FuHw H/E5vYlRG1/XqJjPS5Cj7hVVbPu5EbAz5CqOqOkEDWdCPJLEOtlgFprdv8N9gBmW5mxj 2ZzQ== X-Gm-Message-State: AOAM531fFgBKlR78P5T7oaJH3bgvlcmh/NigyA5fFwAOW2jZv6ypbnIc cjQtmLIuzn0+PPuWOyPQlF+ZAgfdLXcZ3A== X-Received: by 2002:a65:4788:: with SMTP id e8mr542190pgs.72.1613087192761; Thu, 11 Feb 2021 15:46:32 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id iq6sm5932740pjb.6.2021.02.11.15.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 15:46:32 -0800 (PST) From: Mathieu Poirier To: ohad@wizery.com, bjorn.andersson@linaro.org, arnaud.pouliquen@st.com Cc: robh+dt@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 04/19] remoteproc: Rename function rproc_actuate() Date: Thu, 11 Feb 2021 16:46:12 -0700 Message-Id: <20210211234627.2669674-5-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210211234627.2669674-1-mathieu.poirier@linaro.org> References: <20210211234627.2669674-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename function rproc_actuate() to rproc_attach(). That way it is easy to understand that it does the opposite of rproc_detach(). Signed-off-by: Mathieu Poirier Reviewed-by: Peng Fan Reviewed-by: Arnaud Pouliquen --- drivers/remoteproc/remoteproc_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 86bd66955060..8afc7e1bd28a 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -1416,7 +1416,7 @@ static int rproc_start(struct rproc *rproc, const struct firmware *fw) return ret; } -static int rproc_attach(struct rproc *rproc) +static int __rproc_attach(struct rproc *rproc) { struct device *dev = &rproc->dev; int ret; @@ -1541,7 +1541,7 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw) * Attach to remote processor - similar to rproc_fw_boot() but without * the steps that deal with the firmware image. */ -static int rproc_actuate(struct rproc *rproc) +static int rproc_attach(struct rproc *rproc) { struct device *dev = &rproc->dev; int ret; @@ -1581,7 +1581,7 @@ static int rproc_actuate(struct rproc *rproc) goto clean_up_resources; } - ret = rproc_attach(rproc); + ret = __rproc_attach(rproc); if (ret) goto clean_up_resources; @@ -1802,7 +1802,7 @@ int rproc_boot(struct rproc *rproc) if (rproc->state == RPROC_DETACHED) { dev_info(dev, "attaching to %s\n", rproc->name); - ret = rproc_actuate(rproc); + ret = rproc_attach(rproc); } else { dev_info(dev, "powering up %s\n", rproc->name); -- 2.25.1