Skip to contentSkip to conversation

rockchip: pwm: rk_pwm: use reg variable with phys_addr_t size

PATCH New Johan Jonker 1 participant 1 message Mar 10, 2023 PWM

lore
Share & tools
lore
#0 lore raw

PATCH v7 9/23 rockchip: pwm: rk_pwm: use reg variable with phys_addr_t size

The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expect 64-bit data from the device tree parser, so use a reg variable with phys_addr_t size in the rk_pwm.c file.

---

Changed V6:
new patch

---
 drivers/pwm/rk_pwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/rk_pwm.c +1 -1
index 071eb04f..b2784530 100644
@@ -30,7 +30,7 @@ struct rockchip_pwm_data {
 };
 
 struct rk_pwm_priv {
-	fdt_addr_t base;
+	phys_addr_t base;
 	ulong freq;
 	u32 conf_polarity;
 	const struct rockchip_pwm_data *data;

--
2.20.1