diff mbox series

[v3,5/7] platform: starfive: drop "compatible" from struct pmic

Message ID ab05513e09ddbef539fedd7e9da7a1cecf526971.1706880734.git.namcao@linutronix.de
State Superseded
Headers show
Series Starfive reboot fix & cleanup | expand

Commit Message

Nam Cao Feb. 2, 2024, 1:43 p.m. UTC
The member "compatible" of struct pmic is not used. Delete it.

Signed-off-by: Nam Cao <namcao@linutronix.de>
---
 platform/generic/starfive/jh7110.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Minda Chen Feb. 5, 2024, 8:50 a.m. UTC | #1
> 
> The member "compatible" of struct pmic is not used. Delete it.
> 
> Signed-off-by: Nam Cao <namcao@linutronix.de>
> ---
>  platform/generic/starfive/jh7110.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/platform/generic/starfive/jh7110.c
> b/platform/generic/starfive/jh7110.c
> index 385e09c..f64e016 100644
> --- a/platform/generic/starfive/jh7110.c
> +++ b/platform/generic/starfive/jh7110.c
> @@ -23,7 +23,6 @@
>  struct pmic {
>  	struct i2c_adapter *adapter;
>  	u32 dev_addr;
> -	const char *compatible;
>  };
> 
>  struct jh7110 {
> @@ -205,7 +204,6 @@ static int pm_reset_init(void *fdt, int nodeoff,
>  		return rc;
> 
>  	pmic_inst.dev_addr = addr;
> -	pmic_inst.compatible = match->compatible;
> 
>  	i2c_bus = fdt_parent_offset(fdt, nodeoff);
>  	if (i2c_bus < 0)
> --
> 2.39.2
Maybe this patch can be squash to 3rd patch. It is my sugguestion.
Nam Cao Feb. 5, 2024, 9 a.m. UTC | #2
On 05/Feb/2024 Minda Chen wrote:
> > The member "compatible" of struct pmic is not used. Delete it.
> > 
> > Signed-off-by: Nam Cao <namcao@linutronix.de>
> > ---
> >  platform/generic/starfive/jh7110.c | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/platform/generic/starfive/jh7110.c
> > b/platform/generic/starfive/jh7110.c
> > index 385e09c..f64e016 100644
> > --- a/platform/generic/starfive/jh7110.c
> > +++ b/platform/generic/starfive/jh7110.c
> > @@ -23,7 +23,6 @@
> >  struct pmic {
> >  	struct i2c_adapter *adapter;
> >  	u32 dev_addr;
> > -	const char *compatible;
> >  };
> > 
> >  struct jh7110 {
> > @@ -205,7 +204,6 @@ static int pm_reset_init(void *fdt, int nodeoff,
> >  		return rc;
> > 
> >  	pmic_inst.dev_addr = addr;
> > -	pmic_inst.compatible = match->compatible;
> > 
> >  	i2c_bus = fdt_parent_offset(fdt, nodeoff);
> >  	if (i2c_bus < 0)
> > --
> > 2.39.2  
> Maybe this patch can be squash to 3rd patch. It is my sugguestion.

Makes sense. Unfortunately I just sent a v4 a few seconds before this. I
think it's not too important, so I don't really want to send a new series
just for this.

If okay with you, I will wait and see if there are any other comments. If
v5 is needed, I will squash them then.

Best regards,
Nam
diff mbox series

Patch

diff --git a/platform/generic/starfive/jh7110.c b/platform/generic/starfive/jh7110.c
index 385e09c..f64e016 100644
--- a/platform/generic/starfive/jh7110.c
+++ b/platform/generic/starfive/jh7110.c
@@ -23,7 +23,6 @@ 
 struct pmic {
 	struct i2c_adapter *adapter;
 	u32 dev_addr;
-	const char *compatible;
 };
 
 struct jh7110 {
@@ -205,7 +204,6 @@  static int pm_reset_init(void *fdt, int nodeoff,
 		return rc;
 
 	pmic_inst.dev_addr = addr;
-	pmic_inst.compatible = match->compatible;
 
 	i2c_bus = fdt_parent_offset(fdt, nodeoff);
 	if (i2c_bus < 0)