diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-04-02 20:24:54 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-02 19:57:11 +0200 |
commit | ab6426e3353ac9731f92218ccf4f36bb8d933407 (patch) | |
tree | f4b6b15e13e6fb782acdb8467c7afd04aad7ec93 /drivers/staging | |
parent | 36cbd6851d57bcdd3500bbcc3b98ea16f81939ca (diff) |
staging: emxx_udc: emxx_udc.c: Replace bit shifting with BIT macro
Challenge suggested by coccinelle.
Prefer using BIT and replace bit shifting with the BIT(x) macro.
Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 7b2f1558bdac..4f3c2c13a225 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -1495,10 +1495,10 @@ static int std_req_get_status(struct nbu2ss_udc *udc) case USB_RECIP_DEVICE: if (udc->ctrl.wIndex == 0x0000) { if (udc->gadget.is_selfpowered) - status_data |= (1 << USB_DEVICE_SELF_POWERED); + status_data |= BIT(USB_DEVICE_SELF_POWERED); if (udc->remote_wakeup) - status_data |= (1 << USB_DEVICE_REMOTE_WAKEUP); + status_data |= BIT(USB_DEVICE_REMOTE_WAKEUP); result = 0; } @@ -1510,7 +1510,7 @@ static int std_req_get_status(struct nbu2ss_udc *udc) result = _nbu2ss_get_ep_stall(udc, ep_adrs); if (result > 0) - status_data |= (1 << USB_ENDPOINT_HALT); + status_data |= BIT(USB_ENDPOINT_HALT); } break; |