Skip to contentSkip to conversation

pwm: cros_ec: Rename "priv_auto_alloc_size" to "priv_auto"

PATCH New Alper Nebi Yasak 2 participants 4 messages May 14, 2021 – Jun 5, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")

---

 drivers/pwm/cros_ec_pwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/cros_ec_pwm.c +1 -1
index 44f4105dfd54..4a39c319aa2a 100644
@@ -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
#1 lore raw

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: 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.

Quoted 6 lines
Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")

---

 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
index 44f4105dfd54..4a39c319aa2a 100644
@@ -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

#2 lore raw

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: 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.

Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")

---

Quoted 6 lines
Quoted 2 lines
 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?

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
index 44f4105dfd54..4a39c319aa2a 100644
@@ -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

#3 lore raw
Quoted 13 lines · Simon Glass

Hi Alper,

Quoted 10 lines · Alper Nebi Yasak

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.

Fixes 1b9ee2882e6b ("pwm: Add a driver for Chrome OS EC PWM")

---

Quoted 6 lines
Quoted 2 lines
 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?

I'll try adding a sandbox test as a new patchset.

Quoted 1 line
Quoted 1 line

Applied to u-boot-dm, thanks!