Skip to content
Commit dc87f6dd authored by Adam Ford's avatar Adam Ford Committed by Bartosz Golaszewski
Browse files

gpio: pca953x: Fix pca953x_gpio_set_config



pca953x_gpio_set_config is setup to support pull-up/down
bias.  Currently the driver uses a variable called 'config' to
determine which options to use.  Unfortunately, this is incorrect.

This patch uses function pinconf_to_config_param(config), which
converts this 'config' parameter back to pinconfig to determine
which option to use.

Fixes: 15add068 ("gpio: pca953x: add ->set_config implementation")
Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent ae83d0b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment