]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_ocp: use bits.h macros for all masks
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Jun 2022 12:03:55 +0000 (15:03 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 15:36:08 +0000 (08:36 -0700)
commit06059c0a09ce1401fbcd583366226530638c0ac9
tree81bbe6bd6c79927d8e76d7545b05c84e3b33658d
parent521b5a26c8da995cdb404b3415005f102147d47e
ptp_ocp: use bits.h macros for all masks

Currently we are using BIT(), but GENMASK(). Make use of the latter one
as well (far less error-prone, far more concise).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c