Searched refs:up_threshold (Results 1 – 2 of 2) sorted by relevance
14 int t, down_threshold = -1, up_threshold; in adc_key_ofdata_to_platdata() local33 up_threshold = dev_read_u32_default(dev_get_parent(dev), in adc_key_ofdata_to_platdata()35 if (up_threshold < 0) in adc_key_ofdata_to_platdata()51 if (t > voltage && t < up_threshold) in adc_key_ofdata_to_platdata()52 up_threshold = t; in adc_key_ofdata_to_platdata()61 up_threshold = voltage + volt_margin; in adc_key_ofdata_to_platdata()76 uc_key->max = voltage + (up_threshold - voltage) / 2; in adc_key_ofdata_to_platdata()
37 int t, down_threshold = -1, up_threshold; in key_read() local64 up_threshold = fdtdec_get_int(fdt_blob, adc_node, in key_read()66 if (up_threshold < 0) { in key_read()105 if (t > voltage && t < up_threshold) in key_read()106 up_threshold = t; in key_read()115 up_threshold = voltage + volt_margin; in key_read()127 max = voltage + (up_threshold - voltage) / 2; in key_read()