Lines Matching full:max77802
3 // max77802.c - Regulator driver for the Maxim 77802
25 #include <dt-bindings/regulator/maxim,max77802.h>
96 struct max77802_regulator_prv *max77802 = rdev_get_drvdata(rdev); in max77802_set_suspend_disable() local
100 max77802->opmode[id] = val; in max77802_set_suspend_disable()
112 struct max77802_regulator_prv *max77802 = rdev_get_drvdata(rdev); in max77802_set_mode() local
130 max77802->opmode[id] = val; in max77802_set_mode()
137 struct max77802_regulator_prv *max77802 = rdev_get_drvdata(rdev); in max77802_get_mode() local
140 return max77802_map_mode(max77802->opmode[id]); in max77802_get_mode()
162 struct max77802_regulator_prv *max77802 = rdev_get_drvdata(rdev); in max77802_set_suspend_mode() local
171 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) { in max77802_set_suspend_mode()
184 if (max77802->opmode[id] == MAX77802_OPMODE_NORMAL) in max77802_set_suspend_mode()
195 if (max77802->opmode[id] == MAX77802_OPMODE_LP) in max77802_set_suspend_mode()
211 struct max77802_regulator_prv *max77802 = rdev_get_drvdata(rdev); in max77802_enable() local
215 if (max77802->opmode[id] == MAX77802_OFF_PWRREQ) in max77802_enable()
216 max77802->opmode[id] = MAX77802_OPMODE_NORMAL; in max77802_enable()
220 max77802->opmode[id] << shift); in max77802_enable()
481 struct max77802_regulator_prv *max77802; in max77802_pmic_probe() local
485 max77802 = devm_kzalloc(&pdev->dev, in max77802_pmic_probe()
488 if (!max77802) in max77802_pmic_probe()
493 config.driver_data = max77802; in max77802_pmic_probe()
494 platform_set_drvdata(pdev, max77802); in max77802_pmic_probe()
517 max77802->opmode[id] = MAX77802_OPMODE_NORMAL; in max77802_pmic_probe()
519 max77802->opmode[id] = val; in max77802_pmic_probe()
535 {"max77802-pmic", 0},
542 .name = "max77802-pmic",