Skip to content

Commit a083c75

Browse files
masahir0ygregkh
authored andcommitted
devres: rename the first parameter of devm_add_action(_or_reset)
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 <masahiroy@kernel.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20230908135840.2362708-1-masahiroy@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 243e1b7 commit a083c75

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/linux/device.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ void devm_remove_action(struct device *dev, void (*action)(void *), void *data);
389389
void devm_release_action(struct device *dev, void (*action)(void *), void *data);
390390

391391
int __devm_add_action(struct device *dev, void (*action)(void *), void *data, const char *name);
392-
#define devm_add_action(release, action, data) \
393-
__devm_add_action(release, action, data, #action)
392+
#define devm_add_action(dev, action, data) \
393+
__devm_add_action(dev, action, data, #action)
394394

395395
static inline int __devm_add_action_or_reset(struct device *dev, void (*action)(void *),
396396
void *data, const char *name)
@@ -403,8 +403,8 @@ static inline int __devm_add_action_or_reset(struct device *dev, void (*action)(
403403

404404
return ret;
405405
}
406-
#define devm_add_action_or_reset(release, action, data) \
407-
__devm_add_action_or_reset(release, action, data, #action)
406+
#define devm_add_action_or_reset(dev, action, data) \
407+
__devm_add_action_or_reset(dev, action, data, #action)
408408

409409
/**
410410
* devm_alloc_percpu - Resource-managed alloc_percpu

0 commit comments

Comments
 (0)