aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pwm/pwm-imx-tpm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-08-25 11:01:46 +0100
committerMark Brown <broonie@kernel.org>2020-08-25 11:01:46 +0100
commit3bec5b6aae830355e786e204b20a7cea38c3a8ed (patch)
treefd597b87faf55ceb2a207ee94f4feca6276696db /drivers/pwm/pwm-imx-tpm.c
parentregulator: remove superfluous lock in regulator_resolve_coupling() (diff)
parentLinux 5.9-rc2 (diff)
downloadwireguard-linux-3bec5b6aae830355e786e204b20a7cea38c3a8ed.tar.xz
wireguard-linux-3bec5b6aae830355e786e204b20a7cea38c3a8ed.zip
Merge tag 'v5.9-rc2' into regulator-5.9
Linux 5.9-rc2
Diffstat (limited to '')
-rw-r--r--drivers/pwm/pwm-imx-tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-imx-tpm.c b/drivers/pwm/pwm-imx-tpm.c
index 5f3d7f7e6aef..fcdf6befb838 100644
--- a/drivers/pwm/pwm-imx-tpm.c
+++ b/drivers/pwm/pwm-imx-tpm.c
@@ -124,7 +124,7 @@ static int pwm_imx_tpm_round_state(struct pwm_chip *chip,
real_state->duty_cycle = state->duty_cycle;
tmp = (u64)p->mod * real_state->duty_cycle;
- p->val = DIV_ROUND_CLOSEST_ULL(tmp, real_state->period);
+ p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period);
real_state->polarity = state->polarity;
real_state->enabled = state->enabled;