From nobody Thu Dec 18 20:15:01 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99881EE7FF3 for ; Fri, 8 Sep 2023 13:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243251AbjIHN6v (ORCPT ); Fri, 8 Sep 2023 09:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbjIHN6v (ORCPT ); Fri, 8 Sep 2023 09:58:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A25E01BF1 for ; Fri, 8 Sep 2023 06:58:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29E64C433C8; Fri, 8 Sep 2023 13:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694181527; bh=DIyVsAgPTuZDFaF1kjOkcsN7GoZd5mVihCW+Y3SnfNk=; h=From:To:Cc:Subject:Date:From; b=IhjrXiMtZu//SHbGWnbEwG45KcP6g29qsuFescaLsR6b9wY63OhL2P92TXGghhr9G 4Fmvq2MbmPkRJUaMxXB2NIWKYa/q3p2p6rnhd+YG5nvOq0+8CwhjkNP4oxX0oKneRl uE/qr1FLUZHfkAtCUIegC8NfCTI/k1uIVmrq+ggBIhEEriDYUrji5xjSXXTFM3yZF5 XNxJFYSydkxAqQG05h7barZSW33Jc5bQss9pnzcuuK/bz9/5I+vmlyROxTA9aqbdGU MpF5dCBbFFy64DVhFtkHPQ63eeRAu0iOS1tRnwum/u9nW45PF1lELBUgclw+V6zInX kY8ggvPm1+sEA== From: Masahiro Yamada To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Andy Shevchenko , Masahiro Yamada Subject: [PATCH v2] devres: rename the first parameter of devm_add_action(_or_reset) Date: Fri, 8 Sep 2023 22:58:40 +0900 Message-Id: <20230908135840.2362708-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The first parameter of devm_add_action(_or_reset) is a device. The name 'release' is confusing because it is often used for dr_release_t in the devres context. Rename it to 'dev'. No functional change intended. Signed-off-by: Masahiro Yamada Reviewed-by: Andy Shevchenko --- Changes in v2: - Change devm_add_action too include/linux/device.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/device.h b/include/linux/device.h index 56d93a1ffb7b..d7a72a8749ea 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -389,8 +389,8 @@ void devm_remove_action(struct device *dev, void (*acti= on)(void *), void *data); void devm_release_action(struct device *dev, void (*action)(void *), void = *data); =20 int __devm_add_action(struct device *dev, void (*action)(void *), void *da= ta, const char *name); -#define devm_add_action(release, action, data) \ - __devm_add_action(release, action, data, #action) +#define devm_add_action(dev, action, data) \ + __devm_add_action(dev, action, data, #action) =20 static inline int __devm_add_action_or_reset(struct device *dev, void (*ac= tion)(void *), void *data, const char *name) @@ -403,8 +403,8 @@ static inline int __devm_add_action_or_reset(struct dev= ice *dev, void (*action)( =20 return ret; } -#define devm_add_action_or_reset(release, action, data) \ - __devm_add_action_or_reset(release, action, data, #action) +#define devm_add_action_or_reset(dev, action, data) \ + __devm_add_action_or_reset(dev, action, data, #action) =20 /** * devm_alloc_percpu - Resource-managed alloc_percpu --=20 2.39.2