realtek: Replace C++ style comments
[openwrt/staging/dedeckeh.git] / target / linux / realtek / files-5.15 / drivers / i2c / muxes / i2c-mux-rtl9300.c
index b277c125e9c8b565f02c876b62a2fc3358c6d483..57036d9d566a31b8c83a2aeb6edb722ec87d818a 100644 (file)
@@ -48,11 +48,11 @@ static int rtl9300_i2c_mux_select(struct i2c_mux_core *muxc, u32 chan)
 {
        struct rtl9300_mux *mux = i2c_mux_priv(muxc);
 
-       // Set SCL pin
+       /* Set SCL pin */
        REG_MASK(channels[chan].scl_num, 0,
                 BIT(RTL9300_I2C_CTRL1_GPIO8_SCL_SEL), RTL9300_I2C_CTRL1);
 
-       // Set SDA pin
+       /* Set SDA pin */
        REG_MASK(channels[chan].scl_num, 0x7 << RTL9300_I2C_CTRL1_SDA_OUT_SEL,
                 channels[chan].sda_num << RTL9300_I2C_CTRL1_SDA_OUT_SEL, RTL9300_I2C_CTRL1);
 
@@ -66,11 +66,11 @@ static int rtl9310_i2c_mux_select(struct i2c_mux_core *muxc, u32 chan)
 {
        struct rtl9300_mux *mux = i2c_mux_priv(muxc);
 
-       // Set SCL pin
+       /* Set SCL pin */
        REG_MASK(0, 0, BIT(RTL9310_I2C_MST_IF_SEL_GPIO_SCL_SEL + channels[chan].scl_num),
                 RTL9310_I2C_MST_IF_SEL);
 
-       // Set SDA pin
+       /* Set SDA pin */
        REG_MASK(channels[chan].scl_num, 0xf << RTL9310_I2C_CTRL_SDA_OUT_SEL,
                 channels[chan].sda_num << RTL9310_I2C_CTRL_SDA_OUT_SEL, RTL9310_I2C_CTRL);
 
@@ -90,7 +90,7 @@ static void rtl9300_sda_sel(struct i2c_mux_core *muxc, int pin)
        struct rtl9300_mux *mux = i2c_mux_priv(muxc);
        u32 v;
 
-       // Set SDA pin to I2C functionality
+       /* Set SDA pin to I2C functionality */
        v = readl(REG(0, RTL9300_I2C_MST_GLB_CTRL));
        v |= BIT(pin);
        writel(v, REG(0, RTL9300_I2C_MST_GLB_CTRL));
@@ -101,7 +101,7 @@ static void rtl9310_sda_sel(struct i2c_mux_core *muxc, int pin)
        struct rtl9300_mux *mux = i2c_mux_priv(muxc);
        u32 v;
 
-       // Set SDA pin to I2C functionality
+       /* Set SDA pin to I2C functionality */
        v = readl(REG(0, RTL9310_I2C_MST_IF_SEL));
        v |= BIT(pin);
        writel(v, REG(0, RTL9310_I2C_MST_IF_SEL));