power: qpnp-fg: Fix possible race condition in FG debugfs

There is a possible race condition when FG debugfs files are concurrently
accessed by multiple threads. Fix this.

CRs-Fixed: 1105481
Change-Id: I154e7f3cdd8d51cf67ef1dfd9d78f423f183cb64
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
Signed-off-by: Harry Yang <harryy@codeaurora.org>
1 file changed