Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Michael Trimarchi
Hi On Mon, Jan 18, 2016 at 5:40 PM, Tom Rini wrote: > On Mon, Jan 18, 2016 at 09:23:54AM +0100, Michael Trimarchi wrote: >> Hi >> >> On Sun, Jan 17, 2016 at 3:44 AM, Tom Rini wrote: >> > With gcc-5.3 we get a warning for using switch() on a bool type. >> > Rewrite these sections as if/else and u

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Tom Rini
On Mon, Jan 18, 2016 at 09:23:54AM +0100, Michael Trimarchi wrote: > Hi > > On Sun, Jan 17, 2016 at 3:44 AM, Tom Rini wrote: > > With gcc-5.3 we get a warning for using switch() on a bool type. > > Rewrite these sections as if/else and update the one section that was > > using 1/0 instead of true

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Michael Trimarchi
Hi On Sun, Jan 17, 2016 at 3:44 AM, Tom Rini wrote: > With gcc-5.3 we get a warning for using switch() on a bool type. > Rewrite these sections as if/else and update the one section that was > using 1/0 instead of true/false. > > Cc: Simon Glass > Cc: Przemyslaw Marczak > Signed-off-by: Tom Rin

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-18 Thread Przemyslaw Marczak
Hello Tom, On 01/17/2016 03:44 AM, Tom Rini wrote: With gcc-5.3 we get a warning for using switch() on a bool type. Rewrite these sections as if/else and update the one section that was using 1/0 instead of true/false. Cc: Simon Glass Cc: Przemyslaw Marczak Signed-off-by: Tom Rini --- driv

Re: [U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-17 Thread Bin Meng
On Sun, Jan 17, 2016 at 10:44 AM, Tom Rini wrote: > With gcc-5.3 we get a warning for using switch() on a bool type. > Rewrite these sections as if/else and update the one section that was > using 1/0 instead of true/false. > > Cc: Simon Glass > Cc: Przemyslaw Marczak > Signed-off-by: Tom Rini

[U-Boot] [PATCH] drivers/power/regulator/max77686.c: Don't use switch() on bools

2016-01-16 Thread Tom Rini
With gcc-5.3 we get a warning for using switch() on a bool type. Rewrite these sections as if/else and update the one section that was using 1/0 instead of true/false. Cc: Simon Glass Cc: Przemyslaw Marczak Signed-off-by: Tom Rini --- drivers/power/regulator/max77686.c | 28 ---