Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Geert Uytterhoeven and committed by
Linus Walleij
771d899a 99468c1a

+2 -7
+2 -7
drivers/gpio/gpio-74x164.c
··· 35 35 36 36 static int __gen_74x164_write_config(struct gen_74x164_chip *chip) 37 37 { 38 - struct spi_transfer xfer = { 39 - .tx_buf = chip->buffer, 40 - .len = chip->registers, 41 - }; 42 - 43 - return spi_sync_transfer(to_spi_device(chip->gpio_chip.parent), 44 - &xfer, 1); 38 + return spi_write(to_spi_device(chip->gpio_chip.parent), chip->buffer, 39 + chip->registers); 45 40 } 46 41 47 42 static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset)