eeprom: ee1004: Cache current page at initialization of first device only
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 24 May 2021 20:14:43 +0000 (22:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 12:49:39 +0000 (14:49 +0200)
commitb2cd8a2f8eb148366fb974e265f1799e93062ea7
tree0e334174deed2b3879f3f57c5f98fe5f4e71c6f4
parent2ac99039c568467ea2e593221aa2a741fa63f0b1
eeprom: ee1004: Cache current page at initialization of first device only

The value of ee1004_current_page applies to all SPD eeproms connected
to the adapter. Therefore it's sufficient if we set ee1004_current_page
when the first device is added.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/b9240e58-08bb-3d71-7a9c-9a323b470ab6@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/ee1004.c