diff options
author | Sanjana Sanikommu <sanjana99reddy99@gmail.com> | 2019-03-28 20:04:24 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-29 17:15:55 +0100 |
commit | 041273721201e0935915aabb8d6b7499b9b949c3 (patch) | |
tree | ee797b284fb8a8bfe5d5174a97f47f9a2ea156d7 /drivers/staging/gasket | |
parent | bdcca44e16a2e701724ee305c265e07c36beace7 (diff) |
staging: gasket: apex: Prefer using the BIT macro
Challenge suggested by coccinelle.
Replace bit shifting on 1 with the BIT(x) macro.
Coccinelle script:
@@
constant c;
@@
-(1 << c)
+BIT(c)
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket')
-rw-r--r-- | drivers/staging/gasket/apex_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c index a5da9bbd8396..2be45ee9d061 100644 --- a/drivers/staging/gasket/apex_driver.c +++ b/drivers/staging/gasket/apex_driver.c @@ -294,7 +294,7 @@ static int apex_enter_reset(struct gasket_dev *gasket_dev) /* - Wait for RAM shutdown. */ if (gasket_wait_with_reschedule(gasket_dev, APEX_BAR_INDEX, - APEX_BAR2_REG_SCU_3, 1 << 6, 1 << 6, + APEX_BAR2_REG_SCU_3, BIT(6), BIT(6), APEX_RESET_DELAY, APEX_RESET_RETRY)) { dev_err(gasket_dev->dev, "RAM did not shut down within timeout (%d ms)\n", @@ -340,7 +340,7 @@ static int apex_quit_reset(struct gasket_dev *gasket_dev) /* - Wait for RAM enable. */ if (gasket_wait_with_reschedule(gasket_dev, APEX_BAR_INDEX, - APEX_BAR2_REG_SCU_3, 1 << 6, 0, + APEX_BAR2_REG_SCU_3, BIT(6), 0, APEX_RESET_DELAY, APEX_RESET_RETRY)) { dev_err(gasket_dev->dev, "RAM did not enable within timeout (%d ms)\n", |