mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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>
This commit is contained in:
parent
99468c1af9
commit
771d899add
1 changed files with 2 additions and 7 deletions
|
@ -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,
|
||||
chip->registers);
|
||||
}
|
||||
|
||||
static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset)
|
||||
|
|
Loading…
Reference in a new issue