diff options
author | David Jander <david@protonic.nl> | 2019-08-27 02:46:28 -0400 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-08-28 06:55:24 -0400 |
commit | bc624a06f0c5190bc37fec7d22cd82b43a579698 (patch) | |
tree | 43a60ab0411b90831043d799bd24be89b476a683 /drivers/gpio/gpio-pca953x.c | |
parent | a55aa89aab90fae7c815b0551b07be37db359d76 (diff) |
gpio: pca953x: correct type of reg_direction
The type of reg_direction needs to match the type of the regmap, which
is u8.
Fixes: 0f25fda840a9 ("gpio: pca953x: Zap ad-hoc reg_direction cache")
Cc: Cc: <stable@vger.kernel.org>
Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r-- | drivers/gpio/gpio-pca953x.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 378b206d2dc9..30072a570bc2 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c | |||
@@ -604,7 +604,7 @@ static void pca953x_irq_bus_sync_unlock(struct irq_data *d) | |||
604 | u8 new_irqs; | 604 | u8 new_irqs; |
605 | int level, i; | 605 | int level, i; |
606 | u8 invert_irq_mask[MAX_BANK]; | 606 | u8 invert_irq_mask[MAX_BANK]; |
607 | int reg_direction[MAX_BANK]; | 607 | u8 reg_direction[MAX_BANK]; |
608 | 608 | ||
609 | regmap_bulk_read(chip->regmap, chip->regs->direction, reg_direction, | 609 | regmap_bulk_read(chip->regmap, chip->regs->direction, reg_direction, |
610 | NBANK(chip)); | 610 | NBANK(chip)); |
@@ -679,7 +679,7 @@ static bool pca953x_irq_pending(struct pca953x_chip *chip, u8 *pending) | |||
679 | bool pending_seen = false; | 679 | bool pending_seen = false; |
680 | bool trigger_seen = false; | 680 | bool trigger_seen = false; |
681 | u8 trigger[MAX_BANK]; | 681 | u8 trigger[MAX_BANK]; |
682 | int reg_direction[MAX_BANK]; | 682 | u8 reg_direction[MAX_BANK]; |
683 | int ret, i; | 683 | int ret, i; |
684 | 684 | ||
685 | if (chip->driver_data & PCA_PCAL) { | 685 | if (chip->driver_data & PCA_PCAL) { |
@@ -768,7 +768,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip, | |||
768 | { | 768 | { |
769 | struct i2c_client *client = chip->client; | 769 | struct i2c_client *client = chip->client; |
770 | struct irq_chip *irq_chip = &chip->irq_chip; | 770 | struct irq_chip *irq_chip = &chip->irq_chip; |
771 | int reg_direction[MAX_BANK]; | 771 | u8 reg_direction[MAX_BANK]; |
772 | int ret, i; | 772 | int ret, i; |
773 | 773 | ||
774 | if (!client->irq) | 774 | if (!client->irq) |