Commit 7e517382 authored by Himadri Pandya's avatar Himadri Pandya Committed by Greg Kroah-Hartman

staging: rtl8712: rename bSuspended to suspended

 - Rename structure field bSuspended to suspended to avoid camelcase.
Suggested by checkpatch.
 - Change type to bool as the variable is used as a boolean.
Signed-off-by: default avatarHimadri Pandya <himadri18.07@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5b8d98f1
......@@ -147,7 +147,7 @@ struct _adapter {
struct mp_priv mppriv;
bool driver_stopped;
bool surprise_removed;
s32 bSuspended;
bool suspended;
u32 IsrContent;
u32 ImrContent;
u8 EepromAddressSize;
......
......@@ -196,7 +196,7 @@ static int r871x_suspend(struct usb_interface *pusb_intf, pm_message_t state)
struct _adapter *padapter = netdev_priv(pnetdev);
netdev_info(pnetdev, "Suspending...\n");
padapter->bSuspended = true;
padapter->suspended = true;
rtl871x_intf_stop(padapter);
if (pnetdev->netdev_ops->ndo_stop)
pnetdev->netdev_ops->ndo_stop(pnetdev);
......@@ -220,7 +220,7 @@ static int r871x_resume(struct usb_interface *pusb_intf)
netif_device_attach(pnetdev);
if (pnetdev->netdev_ops->ndo_open)
pnetdev->netdev_ops->ndo_open(pnetdev);
padapter->bSuspended = false;
padapter->suspended = false;
rtl871x_intf_resume(padapter);
return 0;
}
......
......@@ -221,7 +221,7 @@ static void r8712_usb_read_port_complete(struct urb *purb)
padapter->driver_stopped = true;
break;
case -ENOENT:
if (!padapter->bSuspended) {
if (!padapter->suspended) {
padapter->driver_stopped = true;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment