commit | 86101ea3548ef0e185d77b61a7a1712015bd2bde | [log] [tgz] |
---|---|---|
author | Yong Li <yong.b.li@linux.intel.com> | Fri Nov 17 14:34:18 2017 +0800 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Mon Dec 04 22:08:21 2017 +0000 |
tree | 43c2bf17b0aac44441cb19a23f5906f1f66f1d4a | |
parent | 8102f929622362b7c0f2a8b7619f299f88755daa [diff] |
Add lseek to support GPIO read/write GPIO api does not support repeat read(read multi times after one open). A workaround is close and reopen the device before the second read. The root cause is that the file descriptor is not moved to beginning of the file, this patch can fix this issue Change-Id: I40e5602669c9ab6f0dddf5aa77040466cbfa3738 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>