Searched refs:num_speed (Results 1 – 1 of 1) sorted by relevance
37 int num_speed; member143 for (i = 0; i < fan_data->num_speed; i++) in get_fan_speed_index()158 for (i = 0; i < fan_data->num_speed; i++) in rpm_to_speed_index()162 return fan_data->num_speed - 1; in rpm_to_speed_index()169 u8 pwm = fan_data->speed_index * 255 / (fan_data->num_speed - 1); in pwm1_show()192 speed_index = DIV_ROUND_UP(pwm * (fan_data->num_speed - 1), 255); in pwm1_store()228 set_fan_speed(fan_data, fan_data->num_speed - 1); in pwm1_enable_store()255 fan_data->speed[fan_data->num_speed - 1].rpm); in fan1_max_show()370 *state = fan_data->num_speed - 1; in gpio_fan_get_max_state()454 fan_data->num_speed = i / 2; in gpio_fan_get_of_data()[all …]