Lines Matching refs:pwm1_freq
178 u8 pwm1_freq;
223 return sprintf(buf, "%d\n", data->pwm1_value >= 2 * data->pwm1_freq ?
224 255 : (data->pwm1_value * 255 + data->pwm1_freq) /
225 (2 * data->pwm1_freq));
241 val >= 255 ? 2 * data->pwm1_freq :
242 (val * data->pwm1_freq * 2 + 127) / 255;
565 /* We may need pwm1_freq before ever updating the client data */
566 data->pwm1_freq = i2c_smbus_read_byte_data(client, LM63_REG_PWM_FREQ);
567 if (data->pwm1_freq == 0)
568 data->pwm1_freq = 1;
576 ((data->config_fan & 0x08) ? 700 : 180000) / data->pwm1_freq);
614 data->pwm1_freq = i2c_smbus_read_byte_data(client,
616 if (data->pwm1_freq == 0)
617 data->pwm1_freq = 1;