/* Set read polarity of IO pins in 'reg_bit' to corresponding value in 'data' 0 = read pin value, 1 = read inverted pin value  */
int tca642x_set_pol(uchar chip, uint8_t gpio_bank, uint8_t reg_bit, uint8_t data)
/* Set read polarity of IO pins in 'reg_bit' to corresponding value in 'data' 0 = read pin value, 1 = read inverted pin value  */
int tca642x_set_pol(uchar chip, uint8_t gpio_bank, uint8_t reg_bit, uint8_t data)
{
	uint8_t pol_reg = tca642x_regs[gpio_bank].polarity_reg;
	return tca642x_reg_write(chip, pol_reg, reg_bit, data);
}