]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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, 13 Mar 2025 12:02:16 +0000 (13:02 +0100)
commit856ae1ce8b6620a1741136cd789cb224f5383366
treefc384eb262443c355d7a69f79a38d8bbe7b072e8
parent985d3cf56d8745ca637deee273929e01df449f85
eeprom: digsy_mtc: Make GPIO lookup table match the device

commit 038ef0754aae76f79b147b8867f9250e6a976872 upstream.

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