forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/Documentation/driver-api/gpio/legacy.rst
....@@ -690,11 +690,10 @@
690690 and if it has been configured to generate interrupts (see the
691691 description of "edge"), you can poll(2) on that file and
692692 poll(2) will return whenever the interrupt was triggered. If
693
- you use poll(2), set the events POLLPRI and POLLERR. If you
694
- use select(2), set the file descriptor in exceptfds. After
695
- poll(2) returns, either lseek(2) to the beginning of the sysfs
696
- file and read the new value or close the file and re-open it
697
- to read the value.
693
+ you use poll(2), set the events POLLPRI. If you use select(2),
694
+ set the file descriptor in exceptfds. After poll(2) returns,
695
+ either lseek(2) to the beginning of the sysfs file and read the
696
+ new value or close the file and re-open it to read the value.
698697
699698 "edge" ... reads as either "none", "rising", "falling", or
700699 "both". Write these strings to select the signal edge(s)