Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/nfc/
Dtrf7970a.c456 static int trf7970a_cmd(struct trf7970a *trf, u8 opcode) in trf7970a_cmd() argument
461 dev_dbg(trf->dev, "cmd: 0x%x\n", cmd); in trf7970a_cmd()
463 ret = spi_write(trf->spi, &cmd, 1); in trf7970a_cmd()
465 dev_err(trf->dev, "%s - cmd: 0x%x, ret: %d\n", __func__, cmd, in trf7970a_cmd()
470 static int trf7970a_read(struct trf7970a *trf, u8 reg, u8 *val) in trf7970a_read() argument
475 ret = spi_write_then_read(trf->spi, &addr, 1, val, 1); in trf7970a_read()
477 dev_err(trf->dev, "%s - addr: 0x%x, ret: %d\n", __func__, addr, in trf7970a_read()
480 dev_dbg(trf->dev, "read(0x%x): 0x%x\n", addr, *val); in trf7970a_read()
485 static int trf7970a_read_cont(struct trf7970a *trf, u8 reg, u8 *buf, in trf7970a_read_cont() argument
493 dev_dbg(trf->dev, "read_cont(0x%x, %zd)\n", addr, len); in trf7970a_read_cont()
[all …]