Lines Matching full:vdd
330 stmfx->vdd = devm_regulator_get_optional(&client->dev, "vdd"); in stmfx_chip_init()
331 ret = PTR_ERR_OR_ZERO(stmfx->vdd); in stmfx_chip_init()
333 stmfx->vdd = NULL; in stmfx_chip_init()
336 "Failed to get VDD regulator\n"); in stmfx_chip_init()
339 if (stmfx->vdd) { in stmfx_chip_init()
340 ret = regulator_enable(stmfx->vdd); in stmfx_chip_init()
342 dev_err(&client->dev, "VDD enable failed: %d\n", ret); in stmfx_chip_init()
389 if (stmfx->vdd) in stmfx_chip_init()
390 return regulator_disable(stmfx->vdd); in stmfx_chip_init()
402 if (stmfx->vdd) in stmfx_chip_exit()
403 return regulator_disable(stmfx->vdd); in stmfx_chip_exit()
491 if (stmfx->vdd) in stmfx_suspend()
492 return regulator_disable(stmfx->vdd); in stmfx_suspend()
502 if (stmfx->vdd) { in stmfx_resume()
503 ret = regulator_enable(stmfx->vdd); in stmfx_resume()
506 "VDD enable failed: %d\n", ret); in stmfx_resume()