Skip to content

Commit 038ef07

Browse files
andy-shevgregkh
authored andcommitted
eeprom: digsy_mtc: Make GPIO lookup table match the device
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: 9b00bc7 ("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>
1 parent 819cec1 commit 038ef07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/eeprom/digsy_mtc_eeprom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static struct platform_device digsy_mtc_eeprom = {
5050
};
5151

5252
static struct gpiod_lookup_table eeprom_spi_gpiod_table = {
53-
.dev_id = "spi_gpio",
53+
.dev_id = "spi_gpio.1",
5454
.table = {
5555
GPIO_LOOKUP("gpio@b00", GPIO_EEPROM_CLK,
5656
"sck", GPIO_ACTIVE_HIGH),

0 commit comments

Comments
 (0)