View | Details | Raw Unified | Return to bug 1043231
Collapse All | Expand All

(-)a/drivers/pwm/pwm-crc.c (-1 / +1 lines)
Lines 75-81 static int crc_pwm_config(struct pwm_chip *c, struct pwm_device *pwm, Link Here
75
		return -EINVAL;
75
		return -EINVAL;
76
	}
76
	}
77
77
78
	if (pwm->period != period_ns) {
78
	if (pwm_get_period(pwm) != period_ns) {
79
		int clk_div;
79
		int clk_div;
80
80
81
		/* changing the clk divisor, need to disable fisrt */
81
		/* changing the clk divisor, need to disable fisrt */
(-)a/drivers/pwm/pwm-lpc18xx-sct.c (-1 / +1 lines)
Lines 249-255 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) Link Here
249
			   LPC18XX_PWM_EVSTATEMSK(lpc18xx_data->duty_event),
249
			   LPC18XX_PWM_EVSTATEMSK(lpc18xx_data->duty_event),
250
			   LPC18XX_PWM_EVSTATEMSK_ALL);
250
			   LPC18XX_PWM_EVSTATEMSK_ALL);
251
251
252
	if (pwm->polarity == PWM_POLARITY_NORMAL) {
252
	if (pwm_get_polarity(pwm) == PWM_POLARITY_NORMAL) {
253
		set_event = lpc18xx_pwm->period_event;
253
		set_event = lpc18xx_pwm->period_event;
254
		clear_event = lpc18xx_data->duty_event;
254
		clear_event = lpc18xx_data->duty_event;
255
		res_action = LPC18XX_PWM_RES_SET;
255
		res_action = LPC18XX_PWM_RES_SET;
(-)a/drivers/pwm/pwm-sun4i.c (-2 / +2 lines)
Lines 354-360 static int sun4i_pwm_probe(struct platform_device *pdev) Link Here
354
	val = sun4i_pwm_readl(pwm, PWM_CTRL_REG);
354
	val = sun4i_pwm_readl(pwm, PWM_CTRL_REG);
355
	for (i = 0; i < pwm->chip.npwm; i++)
355
	for (i = 0; i < pwm->chip.npwm; i++)
356
		if (!(val & BIT_CH(PWM_ACT_STATE, i)))
356
		if (!(val & BIT_CH(PWM_ACT_STATE, i)))
357
			pwm->chip.pwms[i].polarity = PWM_POLARITY_INVERSED;
357
			pwm_set_polarity(&pwm->chip.pwms[i],
358
					 PWM_POLARITY_INVERSED);
358
	clk_disable_unprepare(pwm->clk);
359
	clk_disable_unprepare(pwm->clk);
359
360
360
	return 0;
361
	return 0;
361
- 

Return to bug 1043231