Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp258022pxa; Wed, 26 Aug 2020 09:48:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEN6Ac/JZBBh1xOOHK3iaFEiF9oUHto2EOqaWyKo2eCfO02Mj+H1R0Cz/76MLDQ0z9PRVl X-Received: by 2002:a17:906:3acb:: with SMTP id z11mr15771366ejd.530.1598460481054; Wed, 26 Aug 2020 09:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598460481; cv=none; d=google.com; s=arc-20160816; b=W0yfvjKGXTaUl+kVNJnO9cX72uyIv2uEJpkZLQ+265XnMpOC9WSxbDwg+ZcCZGNM8o zEpYIhTgkk55mwEEcmRLUTwFZIXB2oT2a6XxfUqhVA2S9M6dpmU0IGp5xo5mSHZbsOU7 Z2TFL5bWENI7VSP7urAQQM0HFSWcm49QRXkMW+glWTUK/2xlO3iWd21mktADvqOBrte/ 3xYhy7Vf19TvmDk330n1+8xM6ah38MBm8GxR5Rw2MvYBy9d6+2jjcX8rdu6HV9IoJX6Y OXLY0hfDgbJMt216KZ4bAhVv28TIN7AxCKWL1bYPonsGyOT+EuCxtdgOVlLxRsLS0wxO 74Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dL9tfSUkFyPuvtiKmoHXxOSSKMmvouLhdaI7n7GXPMo=; b=L2/milRMPmdpwmLO0tDhfSgNoxY85Dxv77W1Sz9l3bxwAVmeAXrQMm/cY1KdYhPNnM FHtN7blZRpowQZfdEphRBPQqsfaSXTSrILzDOABnSogw6FgUcTHD5/bdxh1uxf9LbUsv BCun4d+MyCbxX5PxRgVUVIeGou89CQ2YPTAQlo7GaPfS1Qz8xYqYzOV/NTTTrYSPKo/R cboCYUxucWJwZUr54OfgSPvjsnpK8fSpDxO6XeawBq7RZPimkVwetp6bDcre79IzJLxo jKb0R7MgQnmGoyIsfOWd3eO4E2kKHc68H2Tgv7FprzJ6aoMVmX0gT7V6oJfp2y+7Q5kR BzCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nXRZ7wbX; 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 q22si1680597edr.304.2020.08.26.09.47.38; Wed, 26 Aug 2020 09:48:01 -0700 (PDT) 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=nXRZ7wbX; 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 S1728202AbgHZQq5 (ORCPT + 99 others); Wed, 26 Aug 2020 12:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbgHZQpn (ORCPT ); Wed, 26 Aug 2020 12:45:43 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34C7DC0617A2 for ; Wed, 26 Aug 2020 09:45:40 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id l191so1321995pgd.5 for ; Wed, 26 Aug 2020 09:45:40 -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 :mime-version:content-transfer-encoding; bh=dL9tfSUkFyPuvtiKmoHXxOSSKMmvouLhdaI7n7GXPMo=; b=nXRZ7wbXj6Yjj00jDZ4A8PJU7BVP76i8CVaoyZQ9eIBNGejqdVLMw/2FcEtskj4o8s uAc22g/QyUXcuwZj0/8uLoFXmOhJgaoNv/PnmWKksjMGMS/AcrBWR0cuucf+iIyunae/ C3J0Vk1p54uOJglqvINLZdlNs7a5c1wkqSZxRhaIrx4RqRbFdrDbSdEcMH4Ebxo2q+QB UoqjTzVU8pXwf9tetqpqeL/p/1kulqSdFdAz7o4skGUxg6Z+hY5Dr7DjUZdTTWId4JYq jied080lnmYvxfszbWLJJw5h5dTtiC/EUgcz9SacdOSoDeN/hiVKrBIUhgn8aFEx3qFO S0mg== 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=dL9tfSUkFyPuvtiKmoHXxOSSKMmvouLhdaI7n7GXPMo=; b=dzdqXxX+3g1z13GfQPH5PHN6LWqZMLFsXSRO7Jm4vbKMoCDTHHGsu90Uc6OBjZFlnh cch531A3F0uMV+S70N/iJC4enFOXL79G0dMLJwJ9OvJHghAWkW8dUVBHiOf3+O49X4Eo ew8y4TxV9JdE2A/MQxkGooO6oCcxvkECxAMTWtgz+IEwp7Zo/l03+G0kUjTUrYHmrfbs VJo9AVDwX2uPInUGau9kCQKW+dVe548wcgEDxYeI8kACmbNGAw9SkTr1Wm6H5IqyQxDx T3X5j7VbJ6gBswlFtYlxOrrV7KuoUVflYs6YJqbDgiWqXGnURFxGw7ZnxFygWdq+1ZBg 0+CQ== X-Gm-Message-State: AOAM5336g9qMtDlX9D6uTwyonZlqPXOGK3hcE4J0LvWmSBGQQV43+swB e4ZKk79R9lTV7IpstUSTl6BG0A== X-Received: by 2002:a62:cf85:: with SMTP id b127mr13145936pfg.89.1598460339728; Wed, 26 Aug 2020 09:45:39 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id u3sm2548878pjn.29.2020.08.26.09.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 09:45:39 -0700 (PDT) From: Mathieu Poirier To: bjorn.andersson@linaro.org, ohad@wizery.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/13] remoteproc: Rename function rproc_actuate() Date: Wed, 26 Aug 2020 10:45:24 -0600 Message-Id: <20200826164529.224476-9-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200826164529.224476-1-mathieu.poirier@linaro.org> References: <20200826164529.224476-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Align what was done for rproc_detach() by renaming function rproc_actuate(). That way it is easier to figure out the opposite of each functions. Signed-off-by: Mathieu Poirier --- drivers/remoteproc/remoteproc_core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index f3943a1e2754..c4b80ce6f22d 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -1393,7 +1393,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; @@ -1518,7 +1518,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; @@ -1558,7 +1558,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); @@ -1893,7 +1893,7 @@ EXPORT_SYMBOL(rproc_shutdown); * * @rproc: the remote processor * - * Detach a remote processor (previously attached to with rproc_actuate()). + * Detach a remote processor (previously attached to with rproc_attach()). * * In case @rproc is still being used by an additional user(s), then * this function will just decrement the power refcount and exit, -- 2.25.1