summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-sun4i-usb.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-09-07 22:20:37 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2016-09-10 17:15:19 +0530
commit9745ceebc4e1e593ddba1b1a104a4a99f2b9a556 (patch)
tree34a5eb4f315a4f9d7cb9850cc1716693a9a21469 /drivers/phy/phy-sun4i-usb.c
parent2a4d59625bf0f0ae57d6fecf5970ca03613f5db8 (diff)
downloadtalos-op-linux-9745ceebc4e1e593ddba1b1a104a4a99f2b9a556.tar.gz
talos-op-linux-9745ceebc4e1e593ddba1b1a104a4a99f2b9a556.zip
phy-sun4i-usb: Use bool where appropriate
We're using bool as true/false type in most places in phy-sun4i-usb.c for consistency fixup the remaining uses of ints which are ever only 0 or 1 to be bools too. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/phy-sun4i-usb.c')
-rw-r--r--drivers/phy/phy-sun4i-usb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/phy/phy-sun4i-usb.c b/drivers/phy/phy-sun4i-usb.c
index fcf4d95ecc6d..1cb84a8a4253 100644
--- a/drivers/phy/phy-sun4i-usb.c
+++ b/drivers/phy/phy-sun4i-usb.c
@@ -445,7 +445,8 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work)
struct sun4i_usb_phy_data *data =
container_of(work, struct sun4i_usb_phy_data, detect.work);
struct phy *phy0 = data->phys[0].phy;
- int id_det, vbus_det, id_notify = 0, vbus_notify = 0;
+ bool id_notify = false, vbus_notify = false;
+ int id_det, vbus_det;
if (phy0 == NULL)
return;
@@ -474,13 +475,13 @@ static void sun4i_usb_phy0_id_vbus_det_scan(struct work_struct *work)
}
sun4i_usb_phy0_set_id_detect(phy0, id_det);
data->id_det = id_det;
- id_notify = 1;
+ id_notify = true;
}
if (vbus_det != data->vbus_det) {
sun4i_usb_phy0_set_vbus_detect(phy0, vbus_det);
data->vbus_det = vbus_det;
- vbus_notify = 1;
+ vbus_notify = true;
}
mutex_unlock(&phy0->mutex);
OpenPOWER on IntegriCloud