Commit 9ce4ed5
Bartosz Golaszewski
gpiolib: provide and use gpiod_line_state_notify()
Wrap the calls to blocking_notifier_call_chain() for the line state
notifier with a helper that allows us to use fewer lines of code and
simpler syntax.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>1 parent 91043f5 commit 9ce4ed5
3 files changed
Lines changed: 14 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 233 | + | |
236 | 234 | | |
237 | 235 | | |
238 | 236 | | |
| |||
414 | 412 | | |
415 | 413 | | |
416 | 414 | | |
417 | | - | |
418 | | - | |
| 415 | + | |
419 | 416 | | |
420 | 417 | | |
421 | 418 | | |
| |||
1420 | 1417 | | |
1421 | 1418 | | |
1422 | 1419 | | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
| 1420 | + | |
1426 | 1421 | | |
1427 | 1422 | | |
1428 | 1423 | | |
| |||
1737 | 1732 | | |
1738 | 1733 | | |
1739 | 1734 | | |
1740 | | - | |
1741 | | - | |
| 1735 | + | |
1742 | 1736 | | |
1743 | 1737 | | |
1744 | 1738 | | |
| |||
2156 | 2150 | | |
2157 | 2151 | | |
2158 | 2152 | | |
2159 | | - | |
2160 | | - | |
| 2153 | + | |
2161 | 2154 | | |
2162 | 2155 | | |
2163 | 2156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2178 | 2178 | | |
2179 | 2179 | | |
2180 | 2180 | | |
2181 | | - | |
2182 | | - | |
| 2181 | + | |
2183 | 2182 | | |
2184 | 2183 | | |
2185 | 2184 | | |
| |||
3741 | 3740 | | |
3742 | 3741 | | |
3743 | 3742 | | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
3744 | 3749 | | |
3745 | 3750 | | |
3746 | 3751 | | |
| |||
4008 | 4013 | | |
4009 | 4014 | | |
4010 | 4015 | | |
4011 | | - | |
4012 | | - | |
| 4016 | + | |
4013 | 4017 | | |
4014 | 4018 | | |
4015 | 4019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
0 commit comments