Loading drivers/pwm/pwm-qpnp.c +3 −4 Original line number Diff line number Diff line Loading @@ -132,7 +132,6 @@ do { \ #define QPNP_ENABLE_LUT_V0(value) (value |= QPNP_RAMP_START_MASK) #define QPNP_DISABLE_LUT_V0(value) (value &= ~QPNP_RAMP_START_MASK) #define QPNP_ENABLE_LUT_V1(value, id) (value |= BIT(id)) #define QPNP_DISABLE_LUT_V1(value, id) (value &= ~BIT(id)) /* LPG Control for RAMP_STEP_DURATION_LSB */ #define QPNP_RAMP_STEP_DURATION_LSB_MASK 0xFF Loading Loading @@ -1006,8 +1005,6 @@ static int qpnp_lpg_configure_lut_state(struct qpnp_pwm_chip *chip, lpg_config->lut_config.ramp_index); value2 = QPNP_ENABLE_LPG_MODE; } else { QPNP_DISABLE_LUT_V1(value1, lpg_config->lut_config.ramp_index); value2 = QPNP_DISABLE_LPG_MODE; } mask1 = value1; Loading @@ -1027,8 +1024,10 @@ static int qpnp_lpg_configure_lut_state(struct qpnp_pwm_chip *chip, if (rc) return rc; return qpnp_lpg_save_and_write(value1, mask1, reg1, if (state == QPNP_LUT_ENABLE || chip->revision == QPNP_LPG_REVISION_0) rc = qpnp_lpg_save_and_write(value1, mask1, reg1, addr1, 1, chip); return rc; } static inline int qpnp_enable_pwm_mode(struct qpnp_pwm_chip *chip) Loading Loading
drivers/pwm/pwm-qpnp.c +3 −4 Original line number Diff line number Diff line Loading @@ -132,7 +132,6 @@ do { \ #define QPNP_ENABLE_LUT_V0(value) (value |= QPNP_RAMP_START_MASK) #define QPNP_DISABLE_LUT_V0(value) (value &= ~QPNP_RAMP_START_MASK) #define QPNP_ENABLE_LUT_V1(value, id) (value |= BIT(id)) #define QPNP_DISABLE_LUT_V1(value, id) (value &= ~BIT(id)) /* LPG Control for RAMP_STEP_DURATION_LSB */ #define QPNP_RAMP_STEP_DURATION_LSB_MASK 0xFF Loading Loading @@ -1006,8 +1005,6 @@ static int qpnp_lpg_configure_lut_state(struct qpnp_pwm_chip *chip, lpg_config->lut_config.ramp_index); value2 = QPNP_ENABLE_LPG_MODE; } else { QPNP_DISABLE_LUT_V1(value1, lpg_config->lut_config.ramp_index); value2 = QPNP_DISABLE_LPG_MODE; } mask1 = value1; Loading @@ -1027,8 +1024,10 @@ static int qpnp_lpg_configure_lut_state(struct qpnp_pwm_chip *chip, if (rc) return rc; return qpnp_lpg_save_and_write(value1, mask1, reg1, if (state == QPNP_LUT_ENABLE || chip->revision == QPNP_LPG_REVISION_0) rc = qpnp_lpg_save_and_write(value1, mask1, reg1, addr1, 1, chip); return rc; } static inline int qpnp_enable_pwm_mode(struct qpnp_pwm_chip *chip) Loading