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: Himadri Pandya <himadri18.07@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5b8d98f171
commit
7e5173822c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue