eeprom: ee1004: Move call to ee1004_set_current_page to ee1004_eeprom_read
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 24 May 2021 20:16:51 +0000 (22:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 12:49:39 +0000 (14:49 +0200)
commit8aeacb7a2de36e429213faa3b0d092a8e9019b3c
treee291770f4355f47b20e569af46dadb9274e4fc6b
parent6f68dbd6cc7b440c91aea894e214a7065f5fbbb6
eeprom: ee1004: Move call to ee1004_set_current_page to ee1004_eeprom_read

Moving the call to ee1004_set_current_page() to ee1004_eeprom_read()
allows to simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/2829a131-51e3-8865-462a-564080158b0b@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/ee1004.c