pwm: cros_ec: Rename "priv_auto_alloc_size" to "priv_auto"
Subsystems (2)
PATCH 1/1 pwm: cros_ec: Rename "priv_auto_alloc_size" to "priv_auto"
With commit 41575d8e4c33 ("dm: treewide: Rename auto_alloc_size members to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". This driver was sent to the mailing list before that change, merged after it, and still has the old form. Apply the rename here as well.
---
drivers/pwm/cros_ec_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/cros_ec_pwm.c +1 -1
@@ -80,5 +80,5 @@ U_BOOT_DRIVER(cros_ec_pwm) = { .id = UCLASS_PWM, .of_match = cros_ec_pwm_ids, .ops = &cros_ec_pwm_ops, - .priv_auto_alloc_size = sizeof(struct cros_ec_pwm_priv), + .priv_auto = sizeof(struct cros_ec_pwm_priv), };
Signature · 1 line
2.31.1
PATCH 1/1 pwm: cros_ec: Rename "priv_auto_alloc_size" to "priv_auto"
Hi Alper,
Quoted 6 lines · Alper Nebi Yasak
With commit
41575d8e4c33("dm: treewide: Renameauto_alloc_sizemembers to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". This driver was sent to the mailing list before that change, merged after it, and still has the old form. Apply the rename here as well.
Quoted 6 lines
Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")Signed-off-by Alper Nebi Yasak <[email protected]>---
drivers/pwm/cros_ec_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Can you enable this driver so it is not dead code, and add a sandbox test?
Quoted 13 lines
drivers/pwm/cros_ec_pwm.c +1
-2@@ -80,5 +80,5 @@ U_BOOT_DRIVER(cros_ec_pwm) = { .id = UCLASS_PWM, .of_match = cros_ec_pwm_ids, .ops = &cros_ec_pwm_ops, - .priv_auto_alloc_size = sizeof(struct cros_ec_pwm_priv), + .priv_auto = sizeof(struct cros_ec_pwm_priv), }; --
Quoted 2 lines
2.31.1
Regards,
Simon
PATCH 1/1 pwm: cros_ec: Rename "priv_auto_alloc_size" to "priv_auto"
Quoted 13 lines · Simon Glass
Hi Alper,
Quoted 10 lines · Alper Nebi Yasak
With commit
41575d8e4c33("dm: treewide: Renameauto_alloc_sizemembers to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". This driver was sent to the mailing list before that change, merged after it, and still has the old form. Apply the rename here as well.Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")Signed-off-by Alper Nebi Yasak <[email protected]>---
Quoted 6 lines
Quoted 2 lines
drivers/pwm/cros_ec_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Reviewed-by Simon Glass <[email protected]>Can you enable this driver so it is not dead code, and add a sandbox test?
I'll try adding a sandbox test as a new patchset.
Quoted 19 lines
Quoted 13 lines
drivers/pwm/cros_ec_pwm.c +1
-2@@ -80,5 +80,5 @@ U_BOOT_DRIVER(cros_ec_pwm) = { .id = UCLASS_PWM, .of_match = cros_ec_pwm_ids, .ops = &cros_ec_pwm_ops, - .priv_auto_alloc_size = sizeof(struct cros_ec_pwm_priv), + .priv_auto = sizeof(struct cros_ec_pwm_priv), }; --Quoted 2 lines
2.31.1
Regards,
Simon
Quoted 13 lines · Simon Glass
Hi Alper,
Quoted 10 lines · Alper Nebi Yasak
With commit
41575d8e4c33("dm: treewide: Renameauto_alloc_sizemembers to be shorter") "priv_auto_alloc_size" was renamed to "priv_auto". This driver was sent to the mailing list before that change, merged after it, and still has the old form. Apply the rename here as well.Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")Signed-off-by Alper Nebi Yasak <[email protected]>---
Quoted 6 lines
Quoted 2 lines
drivers/pwm/cros_ec_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Reviewed-by Simon Glass <[email protected]>Can you enable this driver so it is not dead code, and add a sandbox test?
I'll try adding a sandbox test as a new patchset.
Quoted 1 line
Quoted 1 line
Applied to u-boot-dm, thanks!