Skip to content

Commit bc624a0

Browse files
yopebrgl
authored andcommitted
gpio: pca953x: correct type of reg_direction
The type of reg_direction needs to match the type of the regmap, which is u8. Fixes: 0f25fda ("gpio: pca953x: Zap ad-hoc reg_direction cache") Cc: Cc: <[email protected]> Signed-off-by: David Jander <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent a55aa89 commit bc624a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpio-pca953x.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ static void pca953x_irq_bus_sync_unlock(struct irq_data *d)
604604
u8 new_irqs;
605605
int level, i;
606606
u8 invert_irq_mask[MAX_BANK];
607-
int reg_direction[MAX_BANK];
607+
u8 reg_direction[MAX_BANK];
608608

609609
regmap_bulk_read(chip->regmap, chip->regs->direction, reg_direction,
610610
NBANK(chip));
@@ -679,7 +679,7 @@ static bool pca953x_irq_pending(struct pca953x_chip *chip, u8 *pending)
679679
bool pending_seen = false;
680680
bool trigger_seen = false;
681681
u8 trigger[MAX_BANK];
682-
int reg_direction[MAX_BANK];
682+
u8 reg_direction[MAX_BANK];
683683
int ret, i;
684684

685685
if (chip->driver_data & PCA_PCAL) {
@@ -768,7 +768,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip,
768768
{
769769
struct i2c_client *client = chip->client;
770770
struct irq_chip *irq_chip = &chip->irq_chip;
771-
int reg_direction[MAX_BANK];
771+
u8 reg_direction[MAX_BANK];
772772
int ret, i;
773773

774774
if (!client->irq)

0 commit comments

Comments
 (0)