Home
last modified time | relevance | path

Searched refs:sc89890 (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dsc89890_charger.c319 static int sc89890_field_read(struct sc89890_device *sc89890, in sc89890_field_read() argument
325 ret = regmap_field_read(sc89890->rmap_fields[field_id], &val); in sc89890_field_read()
332 static int sc89890_field_write(struct sc89890_device *sc89890, in sc89890_field_write() argument
335 return regmap_field_write(sc89890->rmap_fields[field_id], val); in sc89890_field_write()
389 static int sc89890_get_chip_state(struct sc89890_device *sc89890, in sc89890_get_chip_state() argument
407 ret = sc89890_field_read(sc89890, state_fields[i].id); in sc89890_get_chip_state()
421 static irqreturn_t __sc89890_handle_irq(struct sc89890_device *sc89890) in __sc89890_handle_irq() argument
426 ret = sc89890_get_chip_state(sc89890, &new_state); in __sc89890_handle_irq()
430 if (!memcmp(&sc89890->state, &new_state, sizeof(new_state))) in __sc89890_handle_irq()
433 if (!new_state.online && sc89890->state.online) { /* power removed */ in __sc89890_handle_irq()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/
H A Dsc89890-charger.txt3 This driver will support the sc89890. There are
7 - compatible: "sc,sc89890"
25 sc89890 {
26 compatible = "sc,sc89890";