Home
last modified time | relevance | path

Searched refs:up_threshold (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/drivers/input/
H A Dadc_key.c14 int t, down_threshold = -1, up_threshold; in adc_key_ofdata_to_platdata() local
33 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()
H A Dspl_adc_key.c37 int t, down_threshold = -1, up_threshold; in key_read() local
64 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()