phy: amlogic: meson-axg-mipi-pcie-analog: replace DSI_LANE definitions with BIT(...
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 20 Nov 2020 15:03:47 +0000 (16:03 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 30 Nov 2020 11:00:24 +0000 (16:30 +0530)
For consistency, replace DSI_LANE definitions with BIT() macro and remove the unused
DSI_LANE_MASK definition.

Suggested-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20201120150347.3914901-1-narmstrong@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c

index 6eb21551bdd9ff151c3dee00c180b9a7d277dc7a..1027ece6ca123fc81b6a10600c327fa7088edca7 100644 (file)
 #define                HHI_MIPI_CNTL2_CH_EN            GENMASK(15, 11)
 #define                HHI_MIPI_CNTL2_CH0_LP_CTL       GENMASK(10, 1)
 
-#define DSI_LANE_0              (1 << 4)
-#define DSI_LANE_1              (1 << 3)
-#define DSI_LANE_CLK            (1 << 2)
-#define DSI_LANE_2              (1 << 1)
-#define DSI_LANE_3              (1 << 0)
-#define DSI_LANE_MASK          (0x1F)
+#define DSI_LANE_0              BIT(4)
+#define DSI_LANE_1              BIT(3)
+#define DSI_LANE_CLK            BIT(2)
+#define DSI_LANE_2              BIT(1)
+#define DSI_LANE_3              BIT(0)
 
 struct phy_axg_mipi_pcie_analog_priv {
        struct phy *phy;