Home
last modified time | relevance | path

Searched refs:pwm_fan_cooling_levels (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dpwm-fan.c57 unsigned int *pwm_fan_cooling_levels; member
239 if (pwm < ctx->pwm_fan_cooling_levels[i + 1]) in pwm_fan_update_state()
407 ret = set_pwm(ctx, ctx->pwm_fan_cooling_levels[state]); in pwm_fan_set_cur_state()
440 ctx->pwm_fan_cooling_levels = devm_kcalloc(dev, num, sizeof(u32), in pwm_fan_of_get_cooling_data()
442 if (!ctx->pwm_fan_cooling_levels) in pwm_fan_of_get_cooling_data()
446 ctx->pwm_fan_cooling_levels, num); in pwm_fan_of_get_cooling_data()
453 if (ctx->pwm_fan_cooling_levels[i] > MAX_PWM) { in pwm_fan_of_get_cooling_data()
455 ctx->pwm_fan_cooling_levels[i], MAX_PWM); in pwm_fan_of_get_cooling_data()