Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3b6d6e9c authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Gerrit - the friendly Code Review server
Browse files

regmap: Quit the read-loop based on position of file-offset



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: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 9e9032d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment