Lines Matching full:rset
39 #define VEML6070_MIN_IT_US 15625 /* Rset = 75 kohm, IT = 1/2 */
46 u32 rset; member
54 data->rset = 270000; in veml6070_calc_it()
55 device_property_read_u32(dev, "vishay,rset-ohms", &data->rset); in veml6070_calc_it()
57 if (data->rset < 75000 || data->rset > 1200000) in veml6070_calc_it()
58 return dev_err_probe(dev, -EINVAL, "Rset out of range\n"); in veml6070_calc_it()
64 data->rset /= KILO; in veml6070_calc_it()
66 tmp_it = VEML6070_MIN_IT_US * data->rset / VEML6070_MIN_RSET_KOHM; in veml6070_calc_it()
164 * the RSET pin. in veml6070_to_uv_index()
176 val = (val * 270 / data->rset) << 1; in veml6070_to_uv_index()
178 val = (val * 270 / data->rset) >> (it_idx - 1); in veml6070_to_uv_index()