• Jean Delvare's avatar
    eeprom: at24: Tidy at24_read() · 99363d1c
    Jean Delvare authored
    The elegant code in at24_read() has the drawback that we now need
    to make a copy of all parameters to pass them to the post-processing
    callback function if there is one. Rewrite the loop in such a way that
    the parameters are not modified, so saving them is no longer needed.
    Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
    Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
    99363d1c
at24.c 23.7 KB