Merge branch 'ib-pinctrl-genprops' into devel
这个提交包含在:
@@ -164,6 +164,18 @@ static int amd_gpio_set_debounce(struct gpio_chip *gc, unsigned offset,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int amd_gpio_set_config(struct gpio_chip *gc, unsigned offset,
|
||||
unsigned long config)
|
||||
{
|
||||
u32 debounce;
|
||||
|
||||
if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE)
|
||||
return -ENOTSUPP;
|
||||
|
||||
debounce = pinconf_to_config_argument(config);
|
||||
return amd_gpio_set_debounce(gc, offset, debounce);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc)
|
||||
{
|
||||
@@ -768,7 +780,7 @@ static int amd_gpio_probe(struct platform_device *pdev)
|
||||
gpio_dev->gc.direction_output = amd_gpio_direction_output;
|
||||
gpio_dev->gc.get = amd_gpio_get_value;
|
||||
gpio_dev->gc.set = amd_gpio_set_value;
|
||||
gpio_dev->gc.set_debounce = amd_gpio_set_debounce;
|
||||
gpio_dev->gc.set_config = amd_gpio_set_config;
|
||||
gpio_dev->gc.dbg_show = amd_gpio_dbg_show;
|
||||
|
||||
gpio_dev->gc.base = -1;
|
||||
|
在新工单中引用
屏蔽一个用户