ide: use BIT() macro for defining bit-flags
authorAmol Surati <suratiamol@gmail.com>
Sun, 7 Jul 2019 08:57:29 +0000 (14:27 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 21:52:14 +0000 (14:52 -0700)
commit13990cf8a180cc070f0b1266140e799db8754289
tree0693f3e3e61250d1516cb33a52254d138dd371e4
parent54dee406374ce8adb352c48e175176247cb8db7c
ide: use BIT() macro for defining bit-flags

The BIT() macro is available for defining the required bit-flags.

Since it operates on an unsigned value and expands to an unsigned result,
using it, instead of an expression like (1 << x), also fixes the problem
of shifting a signed 32-bit value by 31 bits (e.g. 1 << 31).

Signed-off-by: Amol Surati <suratiamol@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ide.h