mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 21:31:09 +00:00
Some implementation's of the 'cat' command pass the absolute position of the file-offset. In the current implementation of 'regmap_data_read_file' this leads to dumping all the registers from offset 0. Avoid this by quitting the read loop if the file-offset requested is lower than actual read-offset. Change-Id: I7c6c31958e92f16387bf4cb5de7fbf4572fcce21 Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>