mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
gpio: merrifield: Make bias configuration available for GPIOs
If we get bias set request, for example, from GpioIo() resource, we silently ignore it. Make bias configuration available for GPIOs. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
ea6fe47f3e
commit
1d10243dc2
@@ -194,6 +194,11 @@ static int mrfld_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
|
||||
{
|
||||
u32 debounce;
|
||||
|
||||
if ((pinconf_to_config_param(config) == PIN_CONFIG_BIAS_DISABLE) ||
|
||||
(pinconf_to_config_param(config) == PIN_CONFIG_BIAS_PULL_UP) ||
|
||||
(pinconf_to_config_param(config) == PIN_CONFIG_BIAS_PULL_DOWN))
|
||||
return gpiochip_generic_config(chip, offset, config);
|
||||
|
||||
if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE)
|
||||
return -ENOTSUPP;
|
||||
|
||||
|
Reference in New Issue
Block a user