Commit 326345f9 authored by Linus Walleij's avatar Linus Walleij Committed by James Hogan

MIPS: pb44: Fix i2c-gpio GPIO descriptor table

I used bad names in my clumsiness when rewriting many board
files to use GPIO descriptors instead of platform data. A few
had the platform_device ID set to -1 which would indeed give
the device name "i2c-gpio".

But several had it set to >=0 which gives the names
"i2c-gpio.0", "i2c-gpio.1" ...

Fix the one affected board in the MIPS tree. Sorry.

Fixes: b2e63555 ("i2c: gpio: Convert to use descriptors")
Reported-by: default avatarSimon Guinot <simon.guinot@sequanux.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 4.15+
Patchwork: https://patchwork.linux-mips.org/patch/19387/Signed-off-by: default avatarJames Hogan <jhogan@kernel.org>
parent ce397d21
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#define PB44_KEYS_DEBOUNCE_INTERVAL (3 * PB44_KEYS_POLL_INTERVAL) #define PB44_KEYS_DEBOUNCE_INTERVAL (3 * PB44_KEYS_POLL_INTERVAL)
static struct gpiod_lookup_table pb44_i2c_gpiod_table = { static struct gpiod_lookup_table pb44_i2c_gpiod_table = {
.dev_id = "i2c-gpio", .dev_id = "i2c-gpio.0",
.table = { .table = {
GPIO_LOOKUP_IDX("ath79-gpio", PB44_GPIO_I2C_SDA, GPIO_LOOKUP_IDX("ath79-gpio", PB44_GPIO_I2C_SDA,
NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), NULL, 0, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment