diff options
| author | Andy Shevchenko <[email protected]> | 2021-05-10 22:46:32 +0300 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2021-05-12 13:54:12 +0200 |
| commit | 02b3f84d9080b0f4297f31258307f626a43faba5 (patch) | |
| tree | 7b026cbe9a23a0f1db040faf3fedc673f7f0a993 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 043aa3db1cbb51251849c262c4c549b665ad93de (diff) | |
gpio: xilinx: Switch to use bitmap APIs
It seems that Xilinx GPIO driver operates with bit arrays longer than 32 and
thus can leverage bitmap APIs for that. It makes code better to understand.
The ->probe() function is modified to try read properties for both channels
since is_dual check makes only sense for the amount of pins used for the second
channel. On top of that kzalloc() guarantees zero initial values for the fields
in the private data structure, hence drop unneeded conditionals and assignments.
The change is inspired by Syed Nayyar Waris' ideas about bitmap API extension.
Signed-off-by: Andy Shevchenko <[email protected]>
Tested-by: Neeli Srinivas <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions