Searched refs:vcc_i2c (Results 1 – 6 of 6) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch_ft5436/ |
| H A D | focaltech_core.c | 932 if (!IS_ERR_OR_NULL(ts_data->vcc_i2c)) { in fts_power_source_ctrl() 933 ret = regulator_enable(ts_data->vcc_i2c); in fts_power_source_ctrl() 949 if (!IS_ERR_OR_NULL(ts_data->vcc_i2c)) { in fts_power_source_ctrl() 950 ret = regulator_disable(ts_data->vcc_i2c); in fts_power_source_ctrl() 995 ts_data->vcc_i2c = regulator_get(ts_data->dev, "vcc_i2c"); in fts_power_source_init() 996 if (!IS_ERR_OR_NULL(ts_data->vcc_i2c)) { in fts_power_source_init() 997 if (regulator_count_voltages(ts_data->vcc_i2c) > 0) { in fts_power_source_init() 998 ret = regulator_set_voltage(ts_data->vcc_i2c, in fts_power_source_init() 1003 regulator_put(ts_data->vcc_i2c); in fts_power_source_init() 1039 if (!IS_ERR_OR_NULL(ts_data->vcc_i2c)) { in fts_power_source_exit() [all …]
|
| H A D | focaltech_core.h | 183 struct regulator *vcc_i2c; member
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/ |
| H A D | focaltech_core.c | 334 data->vcc_i2c = regulator_get(&data->client->dev, "vcc_i2c"); in fts_power_source_init() 335 if (IS_ERR(data->vcc_i2c)) { in fts_power_source_init() 336 ret = PTR_ERR(data->vcc_i2c); in fts_power_source_init() 341 if (regulator_count_voltages(data->vcc_i2c) > 0) { in fts_power_source_init() 342 ret = regulator_set_voltage(data->vcc_i2c, FTS_I2C_VTG_MIN_UV, FTS_I2C_VTG_MAX_UV); in fts_power_source_init() 353 regulator_put(data->vcc_i2c); in fts_power_source_init() 370 if (regulator_count_voltages(data->vcc_i2c) > 0) in fts_power_source_release() 371 regulator_set_voltage(data->vcc_i2c, 0, FTS_I2C_VTG_MAX_UV); in fts_power_source_release() 372 regulator_put(data->vcc_i2c); in fts_power_source_release() 392 ret = regulator_enable(data->vcc_i2c); in fts_power_source_ctrl() [all …]
|
| H A D | focaltech_core.h | 147 struct regulator *vcc_i2c; member
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/elan/ |
| H A D | elan_ts.c | 1557 ret = regulator_enable(ts->vcc_i2c); in elan_ts_power_on() 1574 ret = regulator_disable(ts->vcc_i2c); in elan_ts_power_on() 1610 ts->vcc_i2c = regulator_get(&ts->client->dev, "vcc_i2c"); in elan_power_initial() 1611 if (IS_ERR(ts->vcc_i2c)) { in elan_power_initial() 1612 ret = PTR_ERR(ts->vcc_i2c); in elan_power_initial() 1618 if (regulator_count_voltages(ts->vcc_i2c) > 0) { in elan_power_initial() 1619 ret = regulator_set_voltage(ts->vcc_i2c, ELAN_I2C_VTG_MIN_UV, in elan_power_initial() 1632 regulator_put(ts->vcc_i2c); in elan_power_initial() 1667 regulator_put(ts->vcc_i2c); in elan_ts_set_power() 1875 regulator_put(ts->vcc_i2c); in elan_ts_hw_deinit() [all …]
|
| H A D | elan_ts.h | 168 struct regulator *vcc_i2c; /*tp vio*/ member
|