staging: hikey9xx: phy-hi3670-usb3: hi3670_is_abbclk_seleted() returns bool
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 19 Jan 2021 10:44:41 +0000 (11:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jan 2021 17:49:23 +0000 (18:49 +0100)
commitc04c9966a3ca5a3d9d59ff6eb3fd3ab91c5340e3
treee9bd2b8f25efdf672ccd3b36ed1e0ac43cdd3be2
parent00c5c96886faeb6d2f3dd4369b9b92eee4d4286a
staging: hikey9xx: phy-hi3670-usb3: hi3670_is_abbclk_seleted() returns bool

There are a few issues on this function:

1. Instead of using 1/0 for true/false, change the type to boolean;
2. there's a typo there:
seleted -> selected
3. It's logic is reversed.

Address them.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/a579004cfa0cb3cca55c2124a8574a7aeb4eacc3.1611052729.git.mchehab+huawei@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/hikey9xx/phy-hi3670-usb3.c