Lines Matching full:max77686
3 // max77686.c - Regulator driver for the Maxim 77686
20 #include <linux/mfd/max77686.h>
21 #include <linux/mfd/max77686-private.h>
105 static unsigned int max77686_map_normal_mode(struct max77686_data *max77686, in max77686_map_normal_mode() argument
112 if (test_bit(id, max77686->gpio_enabled)) in max77686_map_normal_mode()
123 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_set_suspend_disable() local
134 max77686->opmode[id] = val; in max77686_set_suspend_disable()
142 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_set_suspend_mode() local
155 val = max77686_map_normal_mode(max77686, id); in max77686_set_suspend_mode()
169 max77686->opmode[id] = val; in max77686_set_suspend_mode()
178 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_ldo_set_suspend_mode() local
189 val = max77686_map_normal_mode(max77686, id); in max77686_ldo_set_suspend_mode()
203 max77686->opmode[id] = val; in max77686_ldo_set_suspend_mode()
209 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_enable() local
215 if (max77686->opmode[id] == MAX77686_OFF_PWRREQ) in max77686_enable()
216 max77686->opmode[id] = max77686_map_normal_mode(max77686, id); in max77686_enable()
220 max77686->opmode[id] << shift); in max77686_enable()
252 struct max77686_data *max77686 = config->driver_data; in max77686_of_parse_cb() local
264 "max77686-regulator"); in max77686_of_parse_cb()
273 set_bit(desc->id, max77686->gpio_enabled); in max77686_of_parse_cb()
508 struct max77686_data *max77686; in max77686_pmic_probe() local
514 max77686 = devm_kzalloc(&pdev->dev, sizeof(struct max77686_data), in max77686_pmic_probe()
516 if (!max77686) in max77686_pmic_probe()
519 max77686->dev = &pdev->dev; in max77686_pmic_probe()
522 config.driver_data = max77686; in max77686_pmic_probe()
523 platform_set_drvdata(pdev, max77686); in max77686_pmic_probe()
529 max77686->opmode[id] = MAX77686_NORMAL; in max77686_pmic_probe()
544 {"max77686-pmic", 0},
551 .name = "max77686-pmic",