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

Bin Meng bmeng.cn at gmail.com
Mon Jan 18 06:05:53 CET 2016


On Sun, Jan 17, 2016 at 10:44 AM, Tom Rini <trini at konsulko.com> 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 <sjg at chromium.org>
> Cc: Przemyslaw Marczak <p.marczak at samsung.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>  drivers/power/regulator/max77686.c | 28 ++++++++--------------------
>  1 file changed, 8 insertions(+), 20 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list