Searched refs:trf (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/nfc/ |
H A D | trf7970a.c | 457 static int trf7970a_cmd(struct trf7970a *trf, u8 opcode) in trf7970a_cmd() argument 462 dev_dbg(trf->dev, "cmd: 0x%x\n", cmd); in trf7970a_cmd() 464 ret = spi_write(trf->spi, &cmd, 1); in trf7970a_cmd() 466 dev_err(trf->dev, "%s - cmd: 0x%x, ret: %d\n", __func__, cmd, in trf7970a_cmd() 471 static int trf7970a_read(struct trf7970a *trf, u8 reg, u8 *val) in trf7970a_read() argument 476 ret = spi_write_then_read(trf->spi, &addr, 1, val, 1); in trf7970a_read() 478 dev_err(trf->dev, "%s - addr: 0x%x, ret: %d\n", __func__, addr, in trf7970a_read() 481 dev_dbg(trf->dev, "read(0x%x): 0x%x\n", addr, *val); in trf7970a_read() 486 static int trf7970a_read_cont(struct trf7970a *trf, u8 reg, u8 *buf, in trf7970a_read_cont() argument 494 dev_dbg(trf->dev, "read_cont(0x%x, %zd)\n", addr, len); in trf7970a_read_cont() [all …]
|