Searched refs:usbsw (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/extcon/ |
H A D | extcon-fsa9480.c | 165 static int fsa9480_write_reg(struct fsa9480_usbsw *usbsw, int reg, int value) in fsa9480_write_reg() argument 169 ret = regmap_write(usbsw->regmap, reg, value); in fsa9480_write_reg() 171 dev_err(usbsw->dev, "%s: err %d\n", __func__, ret); in fsa9480_write_reg() 176 static int fsa9480_read_reg(struct fsa9480_usbsw *usbsw, int reg) in fsa9480_read_reg() argument 180 ret = regmap_read(usbsw->regmap, reg, &val); in fsa9480_read_reg() 182 dev_err(usbsw->dev, "%s: err %d\n", __func__, ret); in fsa9480_read_reg() 189 static int fsa9480_read_irq(struct fsa9480_usbsw *usbsw, int *value) in fsa9480_read_irq() argument 194 ret = regmap_bulk_read(usbsw->regmap, FSA9480_REG_INT1, regs, 2); in fsa9480_read_irq() 196 dev_err(usbsw->dev, "%s: err %d\n", __func__, ret); in fsa9480_read_irq() 202 static void fsa9480_handle_change(struct fsa9480_usbsw *usbsw, in fsa9480_handle_change() argument [all …]
|