gpio: omap: improve coding style for pin config flags
Change the handling of pin config flags from if/else to switch statement to make the code more readable and cleaner. Suggested-by: NGustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: NDrew Fustini <drew@beagleboard.org> Acked-by: NGustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20200722120755.230741-1-drew@beagleboard.orgSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
Showing
想要评论请 注册 或 登录