Lines Matching refs:dev
21 struct device *dev; member
445 dev_warn(s5m8767->dev, in s5m8767_regulator_config_ext_control()
452 dev_warn(s5m8767->dev, in s5m8767_regulator_config_ext_control()
494 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio); in s5m8767_pmic_dt_parse_dvs_gpio()
512 dev_err(iodev->dev, "invalid gpio[%d]: %d\n", i, gpio); in s5m8767_pmic_dt_parse_ds_gpio()
523 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s5m8767_pmic_dt_parse_pdata()
529 pmic_np = iodev->dev->of_node; in s5m8767_pmic_dt_parse_pdata()
531 dev_err(iodev->dev, "could not find pmic sub-node\n"); in s5m8767_pmic_dt_parse_pdata()
537 dev_err(iodev->dev, "could not find regulators sub-node\n"); in s5m8767_pmic_dt_parse_pdata()
544 rdata = devm_kcalloc(&pdev->dev, in s5m8767_pmic_dt_parse_pdata()
552 rmode = devm_kcalloc(&pdev->dev, in s5m8767_pmic_dt_parse_pdata()
568 dev_warn(iodev->dev, in s5m8767_pmic_dt_parse_pdata()
575 &pdev->dev, in s5m8767_pmic_dt_parse_pdata()
590 &pdev->dev, reg_np, in s5m8767_pmic_dt_parse_pdata()
597 dev_warn(iodev->dev, in s5m8767_pmic_dt_parse_pdata()
614 dev_err(iodev->dev, "buck2 voltages not specified\n"); in s5m8767_pmic_dt_parse_pdata()
625 dev_err(iodev->dev, "buck3 voltages not specified\n"); in s5m8767_pmic_dt_parse_pdata()
636 dev_err(iodev->dev, "buck4 voltages not specified\n"); in s5m8767_pmic_dt_parse_pdata()
654 dev_info(iodev->dev, in s5m8767_pmic_dt_parse_pdata()
687 struct sec_pmic_dev *iodev = dev_get_drvdata(pdev->dev.parent); in s5m8767_pmic_probe()
694 dev_err(pdev->dev.parent, "Platform data not supplied\n"); in s5m8767_pmic_probe()
698 if (iodev->dev->of_node) { in s5m8767_pmic_probe()
706 dev_err(&pdev->dev, "S5M8767 GPIO DVS NOT VALID\n"); in s5m8767_pmic_probe()
713 dev_err(&pdev->dev, "S5M8767 GPIO DVS NOT VALID\n"); in s5m8767_pmic_probe()
720 dev_err(&pdev->dev, "S5M8767 GPIO DVS NOT VALID\n"); in s5m8767_pmic_probe()
725 s5m8767 = devm_kzalloc(&pdev->dev, sizeof(struct s5m8767_info), in s5m8767_pmic_probe()
730 s5m8767->dev = &pdev->dev; in s5m8767_pmic_probe()
799 dev_err(&pdev->dev, "GPIO NOT VALID\n"); in s5m8767_pmic_probe()
803 ret = devm_gpio_request(&pdev->dev, pdata->buck_gpios[0], in s5m8767_pmic_probe()
808 ret = devm_gpio_request(&pdev->dev, pdata->buck_gpios[1], in s5m8767_pmic_probe()
813 ret = devm_gpio_request(&pdev->dev, pdata->buck_gpios[2], in s5m8767_pmic_probe()
829 ret = devm_gpio_request(&pdev->dev, pdata->buck_ds[0], "S5M8767 DS2"); in s5m8767_pmic_probe()
833 ret = devm_gpio_request(&pdev->dev, pdata->buck_ds[1], "S5M8767 DS3"); in s5m8767_pmic_probe()
837 ret = devm_gpio_request(&pdev->dev, pdata->buck_ds[2], "S5M8767 DS4"); in s5m8767_pmic_probe()
945 dev_err(s5m8767->dev, "error reading registers\n"); in s5m8767_pmic_probe()
953 config.dev = s5m8767->dev; in s5m8767_pmic_probe()
968 devm_gpiod_unhinge(s5m8767->dev, config.ena_gpiod); in s5m8767_pmic_probe()
970 rdev = devm_regulator_register(&pdev->dev, ®ulators[id], in s5m8767_pmic_probe()
974 dev_err(s5m8767->dev, "regulator init failed for %d\n", in s5m8767_pmic_probe()
982 dev_err(s5m8767->dev, in s5m8767_pmic_probe()