]> 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)
commit0585a71ebe8e293f1e6fdcda1aad70e959665bc0
tree81bbe6bd6c79927d8e76d7545b05c84e3b33658d
parenteea05233682bc5809ce2308298f6b76751433f9a
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