Commit 771d899a authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Walleij

gpio: 74x164: Use spi_write() helper instead of open coding

Signed-off-by: default avatarGeert Uytterhoeven <>
Signed-off-by: default avatarLinus Walleij <>
parent 99468c1a
......@@ -35,13 +35,8 @@ struct gen_74x164_chip {
static int __gen_74x164_write_config(struct gen_74x164_chip *chip)
struct spi_transfer xfer = {
.tx_buf = chip->buffer,
.len = chip->registers,
return spi_sync_transfer(to_spi_device(chip->gpio_chip.parent),
&xfer, 1);
return spi_write(to_spi_device(chip->gpio_chip.parent), chip->buffer,
static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment