Skip to content
Commit 6d6aecec authored by Tom Rini's avatar Tom Rini
Browse files

power: regulator: max77686: Don't use switch() on bools



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@chromium.org>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
parent 22bd03a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment