Adam Ford
3c605abef3
gpio: pca953x: Fix pca953x_gpio_set_config
...
[ Upstream commit dc87f6dd058a648cd2a35e4aa04592dccdc9f0c2 ]
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: 15add06841a3 ("gpio: pca953x: add ->set_config implementation")
Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-20 08:20:04 +02:00
..
2019-03-26 18:38:07 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:29:52 -07:00
2019-07-03 10:24:12 +02:00
2019-07-03 10:10:32 +02:00
2019-07-09 09:07:00 -07:00
2019-08-05 11:42:29 +02:00
2019-09-11 11:13:11 +01:00
2019-07-09 09:07:00 -07:00
2019-04-05 00:04:25 +07:00
2019-11-12 11:18:52 +01:00
2019-08-05 13:25:34 +02:00
2019-05-24 17:36:45 +02:00
2019-08-15 09:44:19 +02:00
2019-05-30 11:26:32 -07:00
2019-09-11 14:50:02 +01:00
2019-02-08 15:55:40 +02:00
2019-07-15 11:03:02 -03:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-15 11:52:34 +02:00
2019-06-05 17:37:10 +02:00
2019-07-31 00:57:21 +02:00
2019-10-01 11:50:40 +02:00
2019-07-22 14:40:07 +02:00
2019-09-04 10:59:10 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-08-23 12:02:34 +02:00
2018-05-16 14:35:24 +02:00
2019-05-30 11:26:41 -07:00
2020-02-24 08:36:26 +01:00
2019-02-09 11:33:37 +01:00
2019-08-15 09:57:29 +02:00
2019-09-12 10:07:44 +01:00
2018-12-07 17:34:07 +02:00
2019-10-15 01:18:51 +02:00
2019-07-15 21:10:39 -07:00
2019-06-05 17:37:00 +02:00
2019-09-03 16:04:19 +02:00
2019-07-09 09:07:00 -07:00
2019-06-05 17:36:38 +02:00
2019-04-05 00:04:26 +07:00
2019-05-30 11:26:32 -07:00
2018-05-16 14:35:24 +02:00
2019-06-05 17:37:10 +02:00
2019-04-05 00:04:26 +07:00
2019-08-15 21:33:07 +02:00
2020-01-04 19:18:20 +01:00
2019-08-05 11:45:24 +02:00
2019-06-19 17:09:55 +02:00
2019-07-09 09:07:00 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-11-12 11:13:54 +01:00
2019-07-29 00:03:52 +02:00
2019-07-31 00:57:21 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:29:19 -07:00
2019-06-05 17:37:17 +02:00
2019-11-03 23:41:11 +01:00
2019-05-30 11:26:39 -07:00
2019-04-08 08:47:06 +02:00
2019-06-19 17:09:55 +02:00
2019-04-08 11:17:43 +02:00
2019-09-09 09:55:27 +02:00
2019-08-14 15:30:56 +02:00
2020-01-17 19:49:03 +01:00
2019-06-05 17:37:06 +02:00
2019-02-08 15:55:41 +02:00
2019-08-23 12:05:06 +02:00
2019-09-21 03:25:10 +02:00
2020-01-04 19:16:27 +01:00
2018-12-21 11:29:57 +01:00
2019-04-05 00:04:27 +07:00
2019-07-09 09:07:00 -07:00
2019-05-30 11:29:52 -07:00
2020-05-20 08:20:04 +02:00
2019-05-24 17:36:45 +02:00
2019-07-23 18:59:05 +03:00
2019-05-30 11:26:41 -07:00
2018-11-05 08:54:42 +01:00
2018-07-29 21:55:33 +02:00
2019-07-09 09:07:00 -07:00
2019-08-05 13:25:34 +02:00
2019-06-19 17:09:55 +02:00
2018-12-17 15:28:30 +01:00
2019-05-30 11:29:52 -07:00
2019-06-27 15:56:50 +01:00
2019-05-24 17:36:45 +02:00
2019-06-19 17:09:06 +02:00
2019-06-19 17:09:55 +02:00
2019-01-11 10:34:37 +01:00
2019-05-30 11:26:32 -07:00
2019-04-23 13:08:33 +02:00
2019-07-03 10:24:02 +02:00
2018-12-07 17:34:08 +02:00
2019-04-05 00:04:27 +07:00
2019-08-05 13:25:34 +02:00
2019-06-05 17:37:06 +02:00
2019-09-11 01:09:37 +01:00
2019-07-09 09:07:00 -07:00
2019-05-30 11:26:32 -07:00
2019-08-05 13:25:34 +02:00
2019-06-19 17:09:10 +02:00
2019-06-19 17:09:06 +02:00
2019-08-05 13:25:34 +02:00
2020-01-23 08:22:29 +01:00
2019-05-30 11:29:19 -07:00
2018-09-04 08:22:47 +02:00
2018-09-04 08:22:47 +02:00
2019-05-24 17:39:01 +02:00
2018-09-04 08:22:47 +02:00
2018-09-04 08:22:47 +02:00
2018-02-23 15:26:42 +01:00
2019-09-11 01:09:37 +01:00
2019-04-05 00:04:28 +07:00
2018-05-16 14:35:24 +02:00
2018-09-04 08:22:47 +02:00
2018-09-10 08:48:51 +02:00
2018-09-10 08:49:22 +02:00
2019-06-19 17:09:55 +02:00
2019-04-05 00:04:28 +07:00
2019-08-23 09:41:18 +02:00
2019-08-05 11:26:58 +02:00
2019-06-27 15:56:51 +01:00
2018-09-17 10:55:24 -07:00
2019-02-08 15:55:41 +02:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2019-05-30 11:26:41 -07:00
2019-07-31 00:57:21 +02:00
2019-06-19 17:09:07 +02:00
2020-02-19 19:53:02 +01:00
2019-08-15 09:55:07 +02:00
2019-05-30 11:29:52 -07:00
2020-01-09 10:19:59 +01:00
2019-06-19 17:09:55 +02:00
2019-08-23 09:40:44 +02:00
2020-01-17 19:48:20 +01:00
2020-04-02 15:11:01 +02:00
2019-09-10 11:34:20 +01:00
2019-04-08 11:20:12 +02:00
2019-09-11 14:47:39 +01:00
2018-09-25 09:08:48 +02:00
2020-02-19 19:53:10 +01:00
2019-09-11 14:45:01 +01:00
2018-09-25 09:08:48 +02:00
2020-04-01 11:01:58 +02:00
2019-07-31 00:57:21 +02:00
2020-02-01 09:34:45 +00:00
2019-09-16 15:52:38 -07:00
2020-01-26 10:01:09 +01:00
2019-06-14 10:16:15 +02:00