misc: at25: Use at25->chip instead of local chip everywhere in ->probe()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 25 Nov 2021 21:31:54 +0000 (23:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 13:26:14 +0000 (14:26 +0100)
commit51902c1212feb9652826fd978e5c58b683f865db
treee51ab3ef2de038bc7b0681bb2a45bed9d51c5ebd
parent58589a75bba96f43b62d8069b35be081bc00d7c3
misc: at25: Use at25->chip instead of local chip everywhere in ->probe()

Currently some values are compared against the contents of the chip structure
and most are from its updated copy in at25->chip. Use the latter one everywhere
in ->probe().

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211125213203.86693-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at25.c