pinctrl: lynxpoint: Enable pin configuration setting for GPIO chip
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 11 Nov 2020 11:34:32 +0000 (13:34 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Nov 2020 10:03:49 +0000 (12:03 +0200)
It appears that pin configuration for GPIO chip hasn't been enabled yet
due to absence of ->set_config() callback.

Enable it here for Intel Lynxpoint PCH.

Depends-on: 2956b5d94a76 ("pinctrl / gpio: Introduce .set_config() callback for GPIO chips")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pinctrl/intel/pinctrl-lynxpoint.c

index 2e9670fc479aa49612fcb0e7bd098cda985fda6f..0a48ca46ab59757bfcb795dfdc7571e12c66a785 100644 (file)
@@ -874,6 +874,7 @@ static int lp_gpio_probe(struct platform_device *pdev)
        gc->direction_output = lp_gpio_direction_output;
        gc->get = lp_gpio_get;
        gc->set = lp_gpio_set;
+       gc->set_config = gpiochip_generic_config;
        gc->get_direction = lp_gpio_get_direction;
        gc->base = -1;
        gc->ngpio = LP_NUM_GPIO;