]> Git Repo - linux.git/blobdiff - drivers/hwmon/pwm-fan.c
drm/nouveau/kms: Don't change EDID when it hasn't actually changed
[linux.git] / drivers / hwmon / pwm-fan.c
index 30b7b3ea8836fc97318091ffa548f3e632bd2bf4..17bb64299bfd83bd553202110f7599fdcb3bad8d 100644 (file)
@@ -447,7 +447,7 @@ static int pwm_fan_resume(struct device *dev)
                return 0;
 
        pwm_get_args(ctx->pwm, &pargs);
-       duty = DIV_ROUND_UP(ctx->pwm_value * (pargs.period - 1), MAX_PWM);
+       duty = DIV_ROUND_UP_ULL(ctx->pwm_value * (pargs.period - 1), MAX_PWM);
        ret = pwm_config(ctx->pwm, duty, pargs.period);
        if (ret)
                return ret;
This page took 0.032511 seconds and 4 git commands to generate.