Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/greybus/
Dpwm.c19 u8 pwm_max; /* max pwm number */ member
37 pwmc->pwm_max = response.count; in gb_pwm_count_operation()
48 if (which > pwmc->pwm_max) in gb_pwm_activate_operation()
73 if (which > pwmc->pwm_max) in gb_pwm_deactivate_operation()
98 if (which > pwmc->pwm_max) in gb_pwm_config_operation()
125 if (which > pwmc->pwm_max) in gb_pwm_set_polarity_operation()
151 if (which > pwmc->pwm_max) in gb_pwm_enable_operation()
176 if (which > pwmc->pwm_max) in gb_pwm_disable_operation()
285 pwm->npwm = pwmc->pwm_max + 1; in gb_pwm_probe()
/Linux-v5.4/drivers/hwmon/
Dadt7470.c160 u8 pwm_max[ADT7470_PWM_COUNT]; member
377 data->pwm_max[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device()
766 return sprintf(buf, "%d\n", data->pwm_max[attr->index]); in pwm_max_show()
784 data->pwm_max[attr->index] = temp; in pwm_max_store()
1061 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0);
1062 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1);
1063 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2);
1064 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
Dadt7462.c216 u8 pwm_max; /* only one per chip */ member
766 data->pwm_max = i2c_smbus_read_byte_data(client, ADT7462_REG_PWM_MAX); in adt7462_update_device()
1117 return sprintf(buf, "%d\n", data->pwm_max); in pwm_max_show()
1134 data->pwm_max = temp; in pwm_max_store()
1555 static SENSOR_DEVICE_ATTR_RW(pwm1_auto_point2_pwm, pwm_max, 0);
1556 static SENSOR_DEVICE_ATTR_RW(pwm2_auto_point2_pwm, pwm_max, 1);
1557 static SENSOR_DEVICE_ATTR_RW(pwm3_auto_point2_pwm, pwm_max, 2);
1558 static SENSOR_DEVICE_ATTR_RW(pwm4_auto_point2_pwm, pwm_max, 3);
Dnct6775.c3303 SENSOR_TEMPLATE_2(pwm_max, "pwm%d_max", S_IWUSR | S_IRUGO, show_pwm, store_pwm,