diff options
Diffstat (limited to 'drivers/pwm/pwm-raspberrypi-poe.c')
| -rw-r--r-- | drivers/pwm/pwm-raspberrypi-poe.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-raspberrypi-poe.c b/drivers/pwm/pwm-raspberrypi-poe.c index 6ff73029f367..2939b71a7ba7 100644 --- a/drivers/pwm/pwm-raspberrypi-poe.c +++ b/drivers/pwm/pwm-raspberrypi-poe.c @@ -82,9 +82,9 @@ static int raspberrypi_pwm_get_property(struct rpi_firmware *firmware,  	return 0;  } -static void raspberrypi_pwm_get_state(struct pwm_chip *chip, -				      struct pwm_device *pwm, -				      struct pwm_state *state) +static int raspberrypi_pwm_get_state(struct pwm_chip *chip, +				     struct pwm_device *pwm, +				     struct pwm_state *state)  {  	struct raspberrypi_pwm *rpipwm = raspberrypi_pwm_from_chip(chip); @@ -93,6 +93,8 @@ static void raspberrypi_pwm_get_state(struct pwm_chip *chip,  					 RPI_PWM_MAX_DUTY);  	state->enabled = !!(rpipwm->duty_cycle);  	state->polarity = PWM_POLARITY_NORMAL; + +	return 0;  }  static int raspberrypi_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,  | 
