diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/pwm/pwm-cros-ec.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/pwm/pwm-cros-ec.c')
| -rw-r--r-- | drivers/pwm/pwm-cros-ec.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 86df6702cb83..74e863aa1d8d 100644 --- a/drivers/pwm/pwm-cros-ec.c +++ b/drivers/pwm/pwm-cros-ec.c @@ -198,6 +198,7 @@ static int cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,  	state->enabled = (ret > 0);  	state->period = EC_PWM_MAX_DUTY; +	state->polarity = PWM_POLARITY_NORMAL;  	/*  	 * Note that "disabled" and "duty cycle == 0" are treated the same. If @@ -328,14 +329,12 @@ static int cros_ec_pwm_probe(struct platform_device *pdev)  	return ret;  } -static int cros_ec_pwm_remove(struct platform_device *dev) +static void cros_ec_pwm_remove(struct platform_device *dev)  {  	struct cros_ec_pwm_device *ec_pwm = platform_get_drvdata(dev);  	struct pwm_chip *chip = &ec_pwm->chip;  	pwmchip_remove(chip); - -	return 0;  }  #ifdef CONFIG_OF @@ -349,7 +348,7 @@ MODULE_DEVICE_TABLE(of, cros_ec_pwm_of_match);  static struct platform_driver cros_ec_pwm_driver = {  	.probe = cros_ec_pwm_probe, -	.remove = cros_ec_pwm_remove, +	.remove_new = cros_ec_pwm_remove,  	.driver = {  		.name = "cros-ec-pwm",  		.of_match_table = of_match_ptr(cros_ec_pwm_of_match),  |