diff mbox

[U-Boot,v2,3/5] rockchip: rk322x: pinctrl: using compatible name same with dts

Message ID 1502954257-7256-4-git-send-email-kever.yang@rock-chips.com
State Accepted
Commit a634236b8d571df7db35ae70bd9a0573fbbec8d2
Delegated to: Philipp Tomsich
Headers show

Commit Message

Kever Yang Aug. 17, 2017, 7:17 a.m. UTC
The dts from kernel is using rk3228-pinctrl as compatible name,
need to sync with it to make the driver work.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

Changes in v2:
- split this patch in two patches

 drivers/pinctrl/rockchip/pinctrl_rk322x.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Philipp Tomsich Aug. 18, 2017, 1:01 p.m. UTC | #1
> The dts from kernel is using rk3228-pinctrl as compatible name,
> need to sync with it to make the driver work.
> 
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> ---
> 
> Changes in v2:
> - split this patch in two patches
> 
>  drivers/pinctrl/rockchip/pinctrl_rk322x.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Philipp Tomsich Aug. 18, 2017, 4:04 p.m. UTC | #2
> The dts from kernel is using rk3228-pinctrl as compatible name,
> need to sync with it to make the driver work.
> 
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
> 
> Changes in v2:
> - split this patch in two patches
> 
>  drivers/pinctrl/rockchip/pinctrl_rk322x.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Philipp Tomsich Aug. 18, 2017, 5:06 p.m. UTC | #3
> The dts from kernel is using rk3228-pinctrl as compatible name,
> need to sync with it to make the driver work.
> 
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
> 
> Changes in v2:
> - split this patch in two patches
> 
>  drivers/pinctrl/rockchip/pinctrl_rk322x.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 

Applied to u-boot-rockchip, thanks!
diff mbox

Patch

diff --git a/drivers/pinctrl/rockchip/pinctrl_rk322x.c b/drivers/pinctrl/rockchip/pinctrl_rk322x.c
index 7aaf4b5..d9f8614 100644
--- a/drivers/pinctrl/rockchip/pinctrl_rk322x.c
+++ b/drivers/pinctrl/rockchip/pinctrl_rk322x.c
@@ -279,12 +279,12 @@  static int rk322x_pinctrl_probe(struct udevice *dev)
 }
 
 static const struct udevice_id rk322x_pinctrl_ids[] = {
-	{ .compatible = "rockchip,rk322x-pinctrl" },
+	{ .compatible = "rockchip,rk3228-pinctrl" },
 	{ }
 };
 
-U_BOOT_DRIVER(pinctrl_rk322x) = {
-	.name		= "pinctrl_rk322x",
+U_BOOT_DRIVER(pinctrl_rk3228) = {
+	.name		= "pinctrl_rk3228",
 	.id		= UCLASS_PINCTRL,
 	.of_match	= rk322x_pinctrl_ids,
 	.priv_auto_alloc_size = sizeof(struct rk322x_pinctrl_priv),