lt3651_charger 35 drivers/power/supply/lt3651-charger.c static inline struct lt3651_charger *psy_to_lt3651_charger( lt3651_charger 44 drivers/power/supply/lt3651-charger.c struct lt3651_charger *lt3651_charger = psy_to_lt3651_charger(psy); lt3651_charger 48 drivers/power/supply/lt3651-charger.c if (!lt3651_charger->chrg_gpio) { lt3651_charger 52 drivers/power/supply/lt3651-charger.c if (gpiod_get_value(lt3651_charger->chrg_gpio)) lt3651_charger 58 drivers/power/supply/lt3651-charger.c val->intval = gpiod_get_value(lt3651_charger->acpr_gpio); lt3651_charger 61 drivers/power/supply/lt3651-charger.c if (!lt3651_charger->fault_gpio) { lt3651_charger 65 drivers/power/supply/lt3651-charger.c if (!gpiod_get_value(lt3651_charger->fault_gpio)) { lt3651_charger 73 drivers/power/supply/lt3651-charger.c if (!lt3651_charger->chrg_gpio) { lt3651_charger 77 drivers/power/supply/lt3651-charger.c val->intval = gpiod_get_value(lt3651_charger->chrg_gpio) ? lt3651_charger 97 drivers/power/supply/lt3651-charger.c struct lt3651_charger *lt3651_charger; lt3651_charger 101 drivers/power/supply/lt3651-charger.c lt3651_charger = devm_kzalloc(&pdev->dev, sizeof(*lt3651_charger), lt3651_charger 103 drivers/power/supply/lt3651-charger.c if (!lt3651_charger) lt3651_charger 106 drivers/power/supply/lt3651-charger.c lt3651_charger->acpr_gpio = devm_gpiod_get(&pdev->dev, lt3651_charger 108 drivers/power/supply/lt3651-charger.c if (IS_ERR(lt3651_charger->acpr_gpio)) { lt3651_charger 109 drivers/power/supply/lt3651-charger.c ret = PTR_ERR(lt3651_charger->acpr_gpio); lt3651_charger 113 drivers/power/supply/lt3651-charger.c lt3651_charger->fault_gpio = devm_gpiod_get_optional(&pdev->dev, lt3651_charger 115 drivers/power/supply/lt3651-charger.c if (IS_ERR(lt3651_charger->fault_gpio)) { lt3651_charger 116 drivers/power/supply/lt3651-charger.c ret = PTR_ERR(lt3651_charger->fault_gpio); lt3651_charger 120 drivers/power/supply/lt3651-charger.c lt3651_charger->chrg_gpio = devm_gpiod_get_optional(&pdev->dev, lt3651_charger 122 drivers/power/supply/lt3651-charger.c if (IS_ERR(lt3651_charger->chrg_gpio)) { lt3651_charger 123 drivers/power/supply/lt3651-charger.c ret = PTR_ERR(lt3651_charger->chrg_gpio); lt3651_charger 128 drivers/power/supply/lt3651-charger.c charger_desc = <3651_charger->charger_desc; lt3651_charger 135 drivers/power/supply/lt3651-charger.c psy_cfg.drv_data = lt3651_charger; lt3651_charger 137 drivers/power/supply/lt3651-charger.c lt3651_charger->charger = devm_power_supply_register(&pdev->dev, lt3651_charger 139 drivers/power/supply/lt3651-charger.c if (IS_ERR(lt3651_charger->charger)) { lt3651_charger 140 drivers/power/supply/lt3651-charger.c ret = PTR_ERR(lt3651_charger->charger); lt3651_charger 151 drivers/power/supply/lt3651-charger.c if (lt3651_charger->acpr_gpio) { lt3651_charger 152 drivers/power/supply/lt3651-charger.c ret = gpiod_to_irq(lt3651_charger->acpr_gpio); lt3651_charger 157 drivers/power/supply/lt3651-charger.c dev_name(&pdev->dev), lt3651_charger->charger); lt3651_charger 161 drivers/power/supply/lt3651-charger.c if (lt3651_charger->fault_gpio) { lt3651_charger 162 drivers/power/supply/lt3651-charger.c ret = gpiod_to_irq(lt3651_charger->fault_gpio); lt3651_charger 167 drivers/power/supply/lt3651-charger.c dev_name(&pdev->dev), lt3651_charger->charger); lt3651_charger 171 drivers/power/supply/lt3651-charger.c if (lt3651_charger->chrg_gpio) { lt3651_charger 172 drivers/power/supply/lt3651-charger.c ret = gpiod_to_irq(lt3651_charger->chrg_gpio); lt3651_charger 177 drivers/power/supply/lt3651-charger.c dev_name(&pdev->dev), lt3651_charger->charger); lt3651_charger 182 drivers/power/supply/lt3651-charger.c platform_set_drvdata(pdev, lt3651_charger);