Lines Matching refs:max77686
98 static unsigned int max77686_map_normal_mode(struct max77686_data *max77686, in max77686_map_normal_mode() argument
105 if (test_bit(id, max77686->gpio_enabled)) in max77686_map_normal_mode()
116 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_set_suspend_disable() local
127 max77686->opmode[id] = val; in max77686_set_suspend_disable()
135 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_set_suspend_mode() local
148 val = max77686_map_normal_mode(max77686, id); in max77686_set_suspend_mode()
162 max77686->opmode[id] = val; in max77686_set_suspend_mode()
171 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_ldo_set_suspend_mode() local
182 val = max77686_map_normal_mode(max77686, id); in max77686_ldo_set_suspend_mode()
196 max77686->opmode[id] = val; in max77686_ldo_set_suspend_mode()
202 struct max77686_data *max77686 = rdev_get_drvdata(rdev); in max77686_enable() local
208 if (max77686->opmode[id] == MAX77686_OFF_PWRREQ) in max77686_enable()
209 max77686->opmode[id] = max77686_map_normal_mode(max77686, id); in max77686_enable()
213 max77686->opmode[id] << shift); in max77686_enable()
220 struct max77686_data *max77686 = config->driver_data; in max77686_of_parse_cb() local
241 set_bit(desc->id, max77686->gpio_enabled); in max77686_of_parse_cb()
484 struct max77686_data *max77686; in max77686_pmic_probe() local
490 max77686 = devm_kzalloc(&pdev->dev, sizeof(struct max77686_data), in max77686_pmic_probe()
492 if (!max77686) in max77686_pmic_probe()
495 max77686->dev = &pdev->dev; in max77686_pmic_probe()
498 config.driver_data = max77686; in max77686_pmic_probe()
499 platform_set_drvdata(pdev, max77686); in max77686_pmic_probe()
505 max77686->opmode[id] = MAX77686_NORMAL; in max77686_pmic_probe()