int ret;
/* attempt to locate a drivable fan, and determine control method */
- ret = gpio->find(gpio, 0, DCB_GPIO_PWM_FAN, 0xff, &func);
+ ret = gpio->find(gpio, 0, DCB_GPIO_FAN, 0xff, &func);
if (ret == 0)
ret = nouveau_fanpwm_create(therm, &func);
if (ret != 0)
percent = priv->percent;
priv->percent = percent;
- duty = !gpio->get(gpio, 0, DCB_GPIO_PWM_FAN, 0xff);
- gpio->set(gpio, 0, DCB_GPIO_PWM_FAN, 0xff, duty);
+ duty = !gpio->get(gpio, 0, DCB_GPIO_FAN, 0xff);
+ gpio->set(gpio, 0, DCB_GPIO_FAN, 0xff, duty);
if (list_empty(&priv->alarm.head) && percent != (duty * 100)) {
u64 next_change = (percent * priv->period_us) / 100;