]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eeprom: digsy_mtc: Make GPIO lookup table match the device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Feb 2025 22:03:11 +0000 (00:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Feb 2025 14:21:00 +0000 (15:21 +0100)
The dev_id value in the GPIO lookup table must match to
the device instance name, which in this case is combined
of name and platform device ID, i.e. "spi_gpio.1". But
the table assumed that there was no platform device ID
defined, which is wrong. Fix the dev_id value accordingly.

Fixes: 9b00bc7b901f ("spi: spi-gpio: Rewrite to use GPIO descriptors")
Cc: stable <stable@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250206220311.1554075-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/digsy_mtc_eeprom.c

index 88888485e6f8ebc911181f55e7a4c71a87a75ed2..ee58f7ce5bfa980b1df9293a336537d0ae6a7bf6 100644 (file)
@@ -50,7 +50,7 @@ static struct platform_device digsy_mtc_eeprom = {
 };
 
 static struct gpiod_lookup_table eeprom_spi_gpiod_table = {
-       .dev_id         = "spi_gpio",
+       .dev_id         = "spi_gpio.1",
        .table          = {
                GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_CLK,
                            "sck", GPIO_ACTIVE_HIGH),