Lines Matching refs:rv
91 int i, rv; in max77650_charger_set_vchgin_min() local
95 rv = regmap_update_bits(chg->map, in max77650_charger_set_vchgin_min()
99 if (rv) in max77650_charger_set_vchgin_min()
100 return rv; in max77650_charger_set_vchgin_min()
112 int i, rv; in max77650_charger_set_ichgin_lim() local
116 rv = regmap_update_bits(chg->map, in max77650_charger_set_ichgin_lim()
120 if (rv) in max77650_charger_set_ichgin_lim()
121 return rv; in max77650_charger_set_ichgin_lim()
132 int rv; in max77650_charger_enable() local
134 rv = regmap_update_bits(chg->map, in max77650_charger_enable()
138 if (rv) in max77650_charger_enable()
139 dev_err(chg->dev, "unable to enable the charger: %d\n", rv); in max77650_charger_enable()
141 return rv; in max77650_charger_enable()
146 int rv; in max77650_charger_disable() local
148 rv = regmap_update_bits(chg->map, in max77650_charger_disable()
152 if (rv) in max77650_charger_disable()
153 dev_err(chg->dev, "unable to disable the charger: %d\n", rv); in max77650_charger_disable()
159 int rv, reg; in max77650_charger_check_status() local
161 rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); in max77650_charger_check_status()
162 if (rv) { in max77650_charger_check_status()
164 "unable to read the charger status: %d\n", rv); in max77650_charger_check_status()
193 int rv, reg; in max77650_charger_get_property() local
197 rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); in max77650_charger_get_property()
198 if (rv) in max77650_charger_get_property()
199 return rv; in max77650_charger_get_property()
230 rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); in max77650_charger_get_property()
231 if (rv) in max77650_charger_get_property()
232 return rv; in max77650_charger_get_property()
237 rv = regmap_read(chg->map, MAX77650_REG_STAT_CHG_B, ®); in max77650_charger_get_property()
238 if (rv) in max77650_charger_get_property()
239 return rv; in max77650_charger_get_property()
283 int rv, chg_irq, chgin_irq; in max77650_charger_probe() local
312 rv = devm_request_any_context_irq(dev, chg_irq, in max77650_charger_probe()
315 if (rv < 0) in max77650_charger_probe()
316 return rv; in max77650_charger_probe()
318 rv = devm_request_any_context_irq(dev, chgin_irq, in max77650_charger_probe()
321 if (rv < 0) in max77650_charger_probe()
322 return rv; in max77650_charger_probe()
329 rv = of_property_read_u32(dev->of_node, in max77650_charger_probe()
331 if (rv == 0) { in max77650_charger_probe()
332 rv = max77650_charger_set_vchgin_min(chg, prop); in max77650_charger_probe()
333 if (rv) in max77650_charger_probe()
334 return rv; in max77650_charger_probe()
337 rv = of_property_read_u32(dev->of_node, in max77650_charger_probe()
339 if (rv == 0) { in max77650_charger_probe()
340 rv = max77650_charger_set_ichgin_lim(chg, prop); in max77650_charger_probe()
341 if (rv) in max77650_charger_probe()
342 return rv; in max77650_charger_probe()