Re: [U-Boot] [PATCH] drivers: core: use strcmp when find device by name

2019-05-22 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH] drivers: core: use strcmp when find device by name > > Hi Peng, > > On Wed, 15 May 2019 at 05:57, Peng Fan wrote: > > > > Hi Simon, > > > > > Subject: Re: [PATCH] drivers: core: use strcmp when find device by > > > name > > > > > > On Sun, 28 Apr 2019 at 03:43,

Re: [U-Boot] [PATCH] drivers: core: use strcmp when find device by name

2019-05-20 Thread Simon Glass
Hi Peng, On Wed, 15 May 2019 at 05:57, Peng Fan wrote: > > Hi Simon, > > > Subject: Re: [PATCH] drivers: core: use strcmp when find device by name > > > > On Sun, 28 Apr 2019 at 03:43, Peng Fan wrote: > > > > > > `if (!strncmp(dev->name, name, strlen(name)))` might find out the > > > wrong devic

Re: [U-Boot] [PATCH] drivers: core: use strcmp when find device by name

2019-05-15 Thread Peng Fan
Hi Simon, > Subject: Re: [PATCH] drivers: core: use strcmp when find device by name > > On Sun, 28 Apr 2019 at 03:43, Peng Fan wrote: > > > > `if (!strncmp(dev->name, name, strlen(name)))` might find out the > > wrong device, it might find out `dram_pll_ref_sel`, when name is > > `dram_pll`. So

Re: [U-Boot] [PATCH] drivers: core: use strcmp when find device by name

2019-05-06 Thread Simon Glass
On Sun, 28 Apr 2019 at 03:43, Peng Fan wrote: > > `if (!strncmp(dev->name, name, strlen(name)))` might find out > the wrong device, it might find out `dram_pll_ref_sel`, when name is > `dram_pll`. So use strcmp to avoid such issue. > > Signed-off-by: Peng Fan > --- > drivers/core/uclass.c | 2 +-

[U-Boot] [PATCH] drivers: core: use strcmp when find device by name

2019-04-28 Thread Peng Fan
`if (!strncmp(dev->name, name, strlen(name)))` might find out the wrong device, it might find out `dram_pll_ref_sel`, when name is `dram_pll`. So use strcmp to avoid such issue. Signed-off-by: Peng Fan --- drivers/core/uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/