Lines Matching refs:act8945a
156 struct act8945a_pmic *act8945a = rdev_get_drvdata(rdev); in act8945a_set_mode() local
204 act8945a->op_mode[id] = mode; in act8945a_set_mode()
211 struct act8945a_pmic *act8945a = rdev_get_drvdata(rdev); in act8945a_get_mode() local
217 return act8945a->op_mode[id]; in act8945a_get_mode()
278 struct act8945a_pmic *act8945a; in act8945a_pmic_probe() local
283 act8945a = devm_kzalloc(&pdev->dev, sizeof(*act8945a), GFP_KERNEL); in act8945a_pmic_probe()
284 if (!act8945a) in act8945a_pmic_probe()
287 act8945a->regmap = dev_get_regmap(pdev->dev.parent, NULL); in act8945a_pmic_probe()
288 if (!act8945a->regmap) { in act8945a_pmic_probe()
307 config.driver_data = act8945a; in act8945a_pmic_probe()
319 platform_set_drvdata(pdev, act8945a); in act8945a_pmic_probe()
322 return regmap_write(act8945a->regmap, ACT8945A_SYS_UNLK_REGS, 0xef); in act8945a_pmic_probe()
327 struct act8945a_pmic *act8945a = dev_get_drvdata(pdev); in act8945a_suspend() local
333 return regmap_write(act8945a->regmap, ACT8945A_SYS_CTRL, 0x42); in act8945a_suspend()
340 struct act8945a_pmic *act8945a = platform_get_drvdata(pdev); in act8945a_pmic_shutdown() local
345 regmap_write(act8945a->regmap, ACT8945A_SYS_CTRL, 0x0); in act8945a_pmic_shutdown()