]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: fix gpio_do_set_config()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 3 Feb 2020 13:16:16 +0000 (14:16 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 10 Feb 2020 09:55:18 +0000 (10:55 +0100)
commite22b663aa037ab3cbca5c56d7a8e9fb30173ac4e
tree8ea7ff016e7c419948e3993f5c559c658b31bf01
parentf7f34736b78d234207a46a1c3e6c177ebe058e74
gpiolib: fix gpio_do_set_config()

Commit a5ed00cf1ff6 ("gpiolib: have a single place of calling
set_config()") introduced a regression where we don't pass the right
variable as argument to the set_config() callback of gpio driver from
gpio_set_config(). After reverting two additional patches that came
on top of it - this addresses the issue by changing the type of the last
argument of gpio_do_set_config() to unsigned long and making sure the
packed config variable is actually used in gpio_set_config().

Fixes: a5ed00cf1ff6 ("gpiolib: have a single place of calling set_config()")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
drivers/gpio/gpiolib.c