media: ccs-pll: Use the BIT macro
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 17 Jun 2020 08:39:34 +0000 (10:39 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Dec 2020 14:48:12 +0000 (15:48 +0100)
Use the BIT macro for setting individual bits.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs-pll.h

index 1b8d36068c7d451bbb287f52b022ba2350f640e2..3ad4e6524ab6fd69da09d5b8e85e91ec258268d1 100644 (file)
 #ifndef CCS_PLL_H
 #define CCS_PLL_H
 
+#include <linux/bits.h>
+
 /* CSI-2 or CCP-2 */
 #define CCS_PLL_BUS_TYPE_CSI2_DPHY                             0x00
 #define CCS_PLL_BUS_TYPE_CSI2_CPHY                             0x01
 
+/* Old SMIA and implementation specific flags */
 /* op pix clock is for all lanes in total normally */
-#define CCS_PLL_FLAG_OP_PIX_CLOCK_PER_LANE                     (1 << 0)
-#define CCS_PLL_FLAG_NO_OP_CLOCKS                              (1 << 1)
+#define CCS_PLL_FLAG_OP_PIX_CLOCK_PER_LANE                     BIT(0)
+#define CCS_PLL_FLAG_NO_OP_CLOCKS                              BIT(1)
 
 /**
  * struct ccs_pll_branch_fr - CCS PLL configuration (front)