gpiolib: finish conversion to devm_*_action*() APIs
Subsystems (2)
v2 cover gpiolib: finish conversion to devm_*_action*() APIs
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to the devres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.
The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Changelog v2:
- dropped actually unneeded patch (Raag)
- rewrote last patch as suggested (Raag)
- collected tags (Raag)
Andy Shevchenko (3):
devres: Move devm_*_action*() APIs to devres.h
devres: Add devm_is_action_added() helper
gpiolib: devres: Finish the conversion to use devm_add_action()
drivers/base/devres.c | 11 +++++ drivers/gpio/gpiolib-devres.c | 90 ++++++++++------------------------- include/linux/device.h | 38 --------------- include/linux/device/devres.h | 41 ++++++++++++++++ 4 files changed, 77 insertions(+), 103 deletions(-)
base-commit: 9deb15de8ca27cf9cba0d2bac53bbe37c836591b
Signature · 1 line
2.45.1.3035.g276e886db78b
PATCH v2 1/3 devres: Move devm_*_action*() APIs to devres.h
We have a newly created header linux/device/devres.h that gathers device managed APIs, so users won't need to include entire device.h for only these ones. Move devm_*_action*() APIs to devres.h as well.
--- include/linux/device.h | 38 ---------------------------------- include/linux/device/devres.h | 39 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 38 deletions(-)
include/linux/device.h +0 -38
@@ -281,44 +281,6 @@ int __must_check device_create_bin_file(struct device *dev,void device_remove_bin_file (struct device *dev,const struct bin_attribute *attr); -/* allows to add/remove a custom action to devres stack */ -int devm_remove_action_nowarn (struct device *dev,void (*action)(void *),void *data); - -/** -* devm_remove_action() - removes previously added custom action -* @dev: Device that owns the action -* @action: Function implementing the action -* @data: Pointer to data passed to @action implementation -* -* Removes instance of @action previously added by devm_add_action(). -* Both action and data should match one of the existing entries. -*/ -static inline -void devm_remove_action (struct device *dev,void (*action)(void *),void *data) -{ -WARN_ON (devm_remove_action_nowarn (dev, action, data)); -} - -void devm_release_action (struct device *dev,void (*action)(void *),void *data); - -int __devm_add_action (struct device *dev,void (*action)(void *),void *data,const char *name); -#define devm_add_action (dev, action, data) \ - __devm_add_action(dev, action, data, #action) - -static inline int __devm_add_action_or_reset (struct device *dev,void (*action)(void *), -void *data,const char *name) -{ -int ret; - - ret =__devm_add_action (dev, action, data, name); -if (ret) -action (data); - -return ret; -} -#define devm_add_action_or_reset (dev, action, data) \ - __devm_add_action_or_reset(dev, action, data, #action) -/** * devm_alloc_percpu - Resource-managed alloc_percpu * @dev: Device to allocate per-cpu memory for
include/linux/device/devres.h +39 -0
@@ -8,6 +8,7 @@#include <linux/overflow.h> #include <linux/stdarg.h> #include <linux/types.h> +#include <asm/bug.h> struct device ;struct device_node ;
@@ -126,4 +127,42 @@ void __iomem *devm_of_iomap(struct device *dev, struct device_node *node, int in#endif +/* allows to add/remove a custom action to devres stack */ +int devm_remove_action_nowarn (struct device *dev,void (*action)(void *),void *data); + +/** +* devm_remove_action() - removes previously added custom action +* @dev: Device that owns the action +* @action: Function implementing the action +* @data: Pointer to data passed to @action implementation +* +* Removes instance of @action previously added by devm_add_action(). +* Both action and data should match one of the existing entries. +*/ +static inline +void devm_remove_action (struct device *dev,void (*action)(void *),void *data) +{ +WARN_ON (devm_remove_action_nowarn (dev, action, data)); +} + +void devm_release_action (struct device *dev,void (*action)(void *),void *data); + +int __devm_add_action (struct device *dev,void (*action)(void *),void *data,const char *name); +#define devm_add_action (dev, action, data) \ + __devm_add_action(dev, action, data, #action) + +static inline int __devm_add_action_or_reset (struct device *dev,void (*action)(void *), +void *data,const char *name) +{ +int ret; + + ret =__devm_add_action (dev, action, data, name); +if (ret) +action (data); + +return ret; +} +#define devm_add_action_or_reset (dev, action, data) \ + __devm_add_action_or_reset(dev, action, data, #action) +#endif /* _DEVICE_DEVRES_H_ */
Signature · 1 line
2.45.1.3035.g276e886db78b
Re: [PATCH v2 1/3] devres: Move devm_*_action*() APIs to devres.h
Quoted 105 lines · Andy Shevchenko
We have a newly created header
linux/device/devres.hthat gathers device managed APIs, so users won't need to include entiredevice.hfor only these ones. Move devm_*_action*() APIs todevres.has well.Reviewed-by Raag Jadav <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- include/linux/device.h | 38 ---------------------------------- include/linux/device/devres.h | 39 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 38 deletions(-)include/linux/device.h +0
-38@@ -281,44 +281,6 @@ int __must_check device_create_bin_file(struct device *dev,void device_remove_bin_file (struct device *dev,const struct bin_attribute *attr); -/* allows to add/remove a custom action to devres stack */ -int devm_remove_action_nowarn (struct device *dev,void (*action)(void *),void *data); - -/** -* devm_remove_action() - removes previously added custom action -* @dev: Device that owns the action -* @action: Function implementing the action -* @data: Pointer to data passed to @action implementation -* -* Removes instance of @action previously added by devm_add_action(). -* Both action and data should match one of the existing entries. -*/ -static inline -void devm_remove_action (struct device *dev,void (*action)(void *),void *data) -{ -WARN_ON (devm_remove_action_nowarn (dev, action, data)); -} - -void devm_release_action (struct device *dev,void (*action)(void *),void *data); - -int __devm_add_action (struct device *dev,void (*action)(void *),void *data,const char *name); -#define devm_add_action (dev, action, data) \ - __devm_add_action(dev, action, data, #action) - -static inline int __devm_add_action_or_reset (struct device *dev,void (*action)(void *), -void *data,const char *name) -{ -int ret; - - ret =__devm_add_action (dev, action, data, name); -if (ret) -action (data); - -return ret; -} -#define devm_add_action_or_reset (dev, action, data) \ - __devm_add_action_or_reset(dev, action, data, #action) -/** * devm_alloc_percpu - Resource-managed alloc_percpu * @dev: Device to allocate per-cpu memory for include/linux/device/devres.h +30
-0@@ -8,6 +8,7 @@#include <linux/overflow.h> #include <linux/stdarg.h> #include <linux/types.h> +#include <asm/bug.h> struct device ;struct device_node ;@@ -126,4 +127,42 @@ void __iomem *devm_of_iomap(struct device *dev, struct device_node *node, int in#endif +/* allows to add/remove a custom action to devres stack */ +int devm_remove_action_nowarn (struct device *dev,void (*action)(void *),void *data); + +/** +* devm_remove_action() - removes previously added custom action +* @dev: Device that owns the action +* @action: Function implementing the action +* @data: Pointer to data passed to @action implementation +* +* Removes instance of @action previously added by devm_add_action(). +* Both action and data should match one of the existing entries. +*/ +static inline +void devm_remove_action (struct device *dev,void (*action)(void *),void *data) +{ +WARN_ON (devm_remove_action_nowarn (dev, action, data)); +} + +void devm_release_action (struct device *dev,void (*action)(void *),void *data); + +int __devm_add_action (struct device *dev,void (*action)(void *),void *data,const char *name); +#define devm_add_action (dev, action, data) \ + __devm_add_action(dev, action, data, #action) + +static inline int __devm_add_action_or_reset (struct device *dev,void (*action)(void *), +void *data,const char *name) +{ +int ret; +
include/linux/device/devres.h void __iomem *devm_of_iomap(struct device *dev, struct device_node *node, int in · line 168
Quoted 10 lines
include/linux/device/devres.h +9
-0+ ret =__devm_add_action (dev, action, data, name); +if (ret) +action (data); + + return ret; +} +#define devm_add_action_or_reset (dev, action, data) \ + __devm_add_action_or_reset(dev, action, data, #action) +#endif /* _DEVICE_DEVRES_H_ */
PATCH v2 2/3 devres: Add devm_is_action_added() helper
In reply to Andy ShevchenkoIn some code we would like to know if the action in device managed resources was added by devm_add_action() family of calls. Introduce a helper for that.
--- drivers/base/devres.c | 11 +++++++++++ include/linux/device/devres.h | 2 ++ 2 files changed, 13 insertions(+)
drivers/base/devres.c +11 -0
@@ -749,6 +749,17 @@ int __devm_add_action(struct device *dev, void (*action)(void *), void *data, co }EXPORT_SYMBOL_GPL (__devm_add_action); +bool devm_is_action_added (struct device *dev,void (*action)(void *),void *data) +{ +struct action_devres devres = { + .data = data, + .action = action, + }; + +return devres_find (dev, devm_action_release, devm_action_match, &devres); +} +EXPORT_SYMBOL_GPL (devm_is_action_added); +/** * devm_remove_action_nowarn() - removes previously added custom action * @dev: Device that owns the action
include/linux/device/devres.h +2 -0
@@ -165,4 +165,6 @@ static inline int __devm_add_action_or_reset(struct device *dev, void (*action)(#define devm_add_action_or_reset (dev, action, data) \ __devm_add_action_or_reset(dev, action, data, #action) +bool devm_is_action_added (struct device *dev,void (*action)(void *),void *data); +#endif /* _DEVICE_DEVRES_H_ */
Signature · 1 line
2.45.1.3035.g276e886db78b
Re: [PATCH v2 2/3] devres: Add devm_is_action_added() helper
Quoted 37 lines · Andy Shevchenko
In some code we would like to know if the action in device managed resources was added by
devm_add_action()family of calls. Introduce a helper for that.Reviewed-by Raag Jadav <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- drivers/base/devres.c | 11 +++++++++++ include/linux/device/devres.h | 2 ++ 2 files changed, 13 insertions(+)drivers/base/devres.c +11
-0@@ -749,6 +749,17 @@ int __devm_add_action(struct device *dev, void (*action)(void *), void *data, co }EXPORT_SYMBOL_GPL (__devm_add_action); +bool devm_is_action_added (struct device *dev,void (*action)(void *),void *data) +{ +struct action_devres devres = { + .data = data, + .action = action, + }; + +return devres_find (dev, devm_action_release, devm_action_match, &devres); +} +EXPORT_SYMBOL_GPL (devm_is_action_added); +/** * devm_remove_action_nowarn() - removes previously added custom action * @dev: Device that owns the action include/linux/device/devres.h +0
-0
include/linux/device/devres.h static inline int __devm_add_action_or_reset(struct device *dev, void (*action)( · line 170
Quoted 6 lines
include/linux/device/devres.h +2
-0@@ -165,4 +165,6 @@ static inline int __devm_add_action_or_reset(struct device *dev, void (*action)(#define devm_add_action_or_reset (dev, action, data) \ __devm_add_action_or_reset(dev, action, data, #action) +bool devm_is_action_added (struct device *dev,void (*action)(void *),void *data); +#endif /* _DEVICE_DEVRES_H_ */
PATCH v2 3/3 gpiolib: devres: Finish the conversion to use devm_add_action()
In reply to Andy ShevchenkoWith a recently added helper we can complete the conversion of the GPIOLIB code to use devm_add_action() in all suitable cases. So do this.
--- drivers/gpio/gpiolib-devres.c | 90 ++++++++++------------------------- 1 file changed, 25 insertions(+), 65 deletions(-)
drivers/gpio/gpiolib-devres.c +25 -65
@@ -6,7 +6,7 @@* Copyright (c) 2011 John Crispin <[email protected]> */ -#include <linux/device.h> +#include <linux/device/devres.h> #include <linux/err.h> #include <linux/export.h> #include <linux/gfp.h>
@@ -19,32 +19,14 @@struct fwnode_handle ;struct lock_class_key ; -static void devm_gpiod_release (struct device *dev,void *res) +static void devm_gpiod_release (void *desc) { -struct gpio_desc **desc = res; - -gpiod_put (*desc); +gpiod_put (desc); } -static int devm_gpiod_match (struct device *dev,void *res,void *data) +static void devm_gpiod_release_array (void *descs) { -struct gpio_desc **this = res, **gpio = data; - -return *this == *gpio; -} - -static void devm_gpiod_release_array (struct device *dev,void *res) -{ -struct gpio_descs **descs = res; - -gpiod_put_array (*descs); -} - -static int devm_gpiod_match_array (struct device *dev,void *res,void *data) -{ -struct gpio_descs **this = res, **gpios = data; - -return *this == *gpios; +gpiod_put_array (descs); }/**
@@ -114,8 +96,8 @@ struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev,unsigned int idx, enum gpiod_flags flags) { - struct gpio_desc **dr; struct gpio_desc *desc; +int ret; desc =gpiod_get_index (dev, con_id, idx, flags);if (IS_ERR (desc))
@@ -126,23 +108,16 @@ struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev,* already under resource management by this device. */ if (flags &GPIOD_FLAGS_BIT_NONEXCLUSIVE ) { -struct devres *dres; +bool dres; - dres =devres_find (dev, devm_gpiod_release, - devm_gpiod_match, &desc); + dres =devm_is_action_added (dev, devm_gpiod_release, desc);if (dres)return desc; } - dr =devres_alloc (devm_gpiod_release,sizeof (struct gpio_desc *), -GFP_KERNEL ); -if (!dr) { -gpiod_put (desc); -return ERR_PTR (-ENOMEM ); - } - - *dr = desc; -devres_add (dev, dr); + ret =devm_add_action_or_reset (dev, devm_gpiod_release, desc); +if (ret) +return ERR_PTR (ret);return desc; }
@@ -171,22 +146,16 @@ struct gpio_desc *devm_fwnode_gpiod_get_index(struct device *dev,enum gpiod_flags flags, const char *label) { - struct gpio_desc **dr; struct gpio_desc *desc; - - dr =devres_alloc (devm_gpiod_release,sizeof (struct gpio_desc *), -GFP_KERNEL ); -if (!dr) -return ERR_PTR (-ENOMEM ); +int ret; desc =gpiod_find_and_request (dev, fwnode, con_id, index, flags, label, false); -if (IS_ERR (desc)) { -devres_free (dr); +if (IS_ERR (desc))return desc; - } - *dr = desc; -devres_add (dev, dr); + ret =devm_add_action_or_reset (dev, devm_gpiod_release, desc); +if (ret) +return ERR_PTR (ret);return desc; }
@@ -244,22 +213,16 @@ struct gpio_descs *__must_check devm_gpiod_get_array(struct device *dev,const char *con_id, enum gpiod_flags flags) { - struct gpio_descs **dr; struct gpio_descs *descs; - - dr =devres_alloc (devm_gpiod_release_array, -sizeof (struct gpio_descs *),GFP_KERNEL ); -if (!dr) -return ERR_PTR (-ENOMEM ); +int ret; descs =gpiod_get_array (dev, con_id, flags); -if (IS_ERR (descs)) { -devres_free (dr); +if (IS_ERR (descs))return descs; - } - *dr = descs; -devres_add (dev, dr); + ret =devm_add_action_or_reset (dev, devm_gpiod_release_array, descs); +if (ret) +return ERR_PTR (ret);return descs; }
@@ -307,8 +270,7 @@ EXPORT_SYMBOL_GPL(devm_gpiod_get_array_optional);*/ void devm_gpiod_put (struct device *dev,struct gpio_desc *desc) { -WARN_ON (devres_release (dev, devm_gpiod_release, devm_gpiod_match, - &desc)); +devm_release_action (dev, devm_gpiod_release, desc); }EXPORT_SYMBOL_GPL (devm_gpiod_put);
@@ -321,20 +283,19 @@ EXPORT_SYMBOL_GPL(devm_gpiod_put);* you want to hand over lifecycle management of a descriptor to another * mechanism. */ -void devm_gpiod_unhinge (struct device *dev,struct gpio_desc *desc) {int ret;if (IS_ERR_OR_NULL (desc))return ; - ret =devres_destroy (dev, devm_gpiod_release, - devm_gpiod_match, &desc); +/* * If the GPIO descriptor is requested as nonexclusive, we * may call this function several times on the same descriptor * so it is OK if devres_destroy() returns -ENOENT. */ + ret =devm_remove_action_nowarn (dev, devm_gpiod_release, desc);if (ret == -ENOENT )return ;/* Anything else we should warn about */
@@ -353,8 +314,7 @@ EXPORT_SYMBOL_GPL(devm_gpiod_unhinge);*/ void devm_gpiod_put_array (struct device *dev,struct gpio_descs *descs) { -WARN_ON (devres_release (dev, devm_gpiod_release_array, - devm_gpiod_match_array, &descs)); +devm_remove_action (dev, devm_gpiod_release_array, descs); }EXPORT_SYMBOL_GPL (devm_gpiod_put_array);
Signature · 1 line
2.45.1.3035.g276e886db78b
Quoted 11 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Bart, I know it's still 2 days left till the two-week ping time, but since we are at rc-5 and this may affect other subsystems I gently ask for your Ack/Review and I push it to my branch for GPIO (as it has dependencies which are already in my and a few other trees).
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 14 lines · Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Quoted 5 lines
Bart, I know it's still 2 days left till the two-week ping time, but since we are at rc-5 and this may affect other subsystems I gently ask for your Ack/Review and I push it to my branch for GPIO (as it has dependencies which are already in my and a few other trees).
I thought this needs an Ack from Greg or Rafael?
Bart
Quoted 15 lines · Bartosz Golaszewski
Quoted 13 lines · Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Quoted 6 lines
Quoted 4 lines
Bart, I know it's still 2 days left till the two-week ping time, but since we are at rc-5 and this may affect other subsystems I gently ask for your Ack/Review and I push it to my branch for GPIO (as it has dependencies which are already in my and a few other trees).
I thought this needs an Ack from Greg or Rafael?
Ah, you a right, I wasn't carefully looked who gave already the tags. Greg, when you have time, can you ack this, please?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Greg, I know you are busy, but do you have a chance to look at this and give your Ack if you are okay with the idea? The route is assumed to be via GPIOLIB tree.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 8 lines · Andy Shevchenko
Quoted 7 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.
Quoted 8 lines
Quoted 4 lines
The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Greg, I know you are busy, but do you have a chance to look at this and give your Ack if you are okay with the idea? The route is assumed to be via GPIOLIB tree.
Looks fine to me:
Quoted 14 lines · Greg Kroah-Hartman
Quoted 13 lines · Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.
Quoted 7 lines
Quoted 3 lines
Greg, I know you are busy, but do you have a chance to look at this and give your Ack if you are okay with the idea? The route is assumed to be via GPIOLIB tree.
Looks fine to me:
Thank you!
Bart, are you okay to take this series?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Bartosz Golaszewski
AppliedRe: (subset) [PATCH v2 0/3] gpiolib: finish conversion to devm_*_action*() APIs
In reply to Andy ShevchenkoFrom: Bartosz Golaszewski <[email protected]>
Quoted 8 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.[...]
Applied, thanks!
[3/3] gpiolib: devres: Finish the conversion to use devm_add_action()
https://git.kernel.org/brgl/linux/c/d1d52c6622a61a0ae8dd2bd2097b25c0f553d2f3
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>
Re: (subset) [PATCH v2 0/3] gpiolib: finish conversion to devm_*_action*() APIs
Quoted 8 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Quoted 6 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.
[...]
Quoted 1 line
Applied, thanks!
Thanks!
Quoted 2 lines
[3/3] gpiolib: devres: Finish the conversion to use
devm_add_action()https://git.kernel.org/brgl/linux/c/d1d52c6622a61a0ae8dd2bd2097b25c0f553d2f3
Only one? What about the first two?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: (subset) [PATCH v2 0/3] gpiolib: finish conversion to devm_*_action*() APIs
Quoted 13 lines · Andy Shevchenko
Quoted 8 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Quoted 6 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.[...]
Quoted 8 lines
Quoted 1 line
Applied, thanks!
Thanks!
Quoted 2 lines
[3/3] gpiolib: devres: Finish the conversion to use
devm_add_action()https://git.kernel.org/brgl/linux/c/d1d52c6622a61a0ae8dd2bd2097b25c0f553d2f3Only one? What about the first two?
b4 borked with the patches applied to gpio/for-next through an immutable tag but all is there, please check the tree.
Bart
Re: (subset) [PATCH v2 0/3] gpiolib: finish conversion to devm_*_action*() APIs
Quoted 12 lines · Bartosz Golaszewski
Quoted 10 lines · Andy Shevchenko
Quoted 8 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
Quoted 6 lines · Andy Shevchenko
GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to thedevres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.
[...]
Quoted 11 lines
Quoted 8 lines
Quoted 1 line
Applied, thanks!
Thanks!
Quoted 2 lines
[3/3] gpiolib: devres: Finish the conversion to use
devm_add_action()https://git.kernel.org/brgl/linux/c/d1d52c6622a61a0ae8dd2bd2097b25c0f553d2f3Only one? What about the first two?
b4 borked with the patches applied to gpio/for-next through an immutable tag but all is there, please check the tree.
Yes, yes, sorry for the noise, and thank you!
Signature · 2 lines
With Best Regards, Andy Shevchenko