/* Read current logic level of all IO pins  */
int pca953x_get_val(uint8_t chip)
/* Read current logic level of all IO pins  */
int pca953x_get_val(uint8_t chip)
{
	uint val;
	if (pca953x_reg_read(chip, PCA953X_IN, &val) < 0)
		return -1;
	return (int)val;
}