]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: kpc_i2c: Use BIT macro rather than manual bit shifting
authorGeordan Neukum <gneukum1@gmail.com>
Sun, 26 May 2019 01:18:29 +0000 (01:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:04:26 +0000 (14:04 -0700)
commitc42d8500491a4c0404dce4f2a5f0d812dd2ee847
tree41dffd3f173dd0e16ec1c58102b2bd7e4ff3c0b7
parent6886187683e43c53c300c03f82c0b0408f267d28
staging: kpc2000: kpc_i2c: Use BIT macro rather than manual bit shifting

The FEATURES_* symbols use bit shifting of the style (1 << k) in order
to assign a certain meaning to the value of inividual bits being set
in the value of a given variable. Instead, use the BIT() macro in
order to improve readability and maintain consistency with the rest
of the kernel.

Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_i2c.c