diff options
author | Kent Gibson <warthog618@gmail.com> | 2020-07-08 12:15:54 +0800 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-07-12 10:22:01 +0200 |
commit | 1bf7ba400173c3a134aae3187b550d79c2a5f585 (patch) | |
tree | 6cf391acf47f72c23b6f99b280ae63a4a6166081 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f30ef3e8376380c5be9de121517c713527cf0813 (diff) |
gpiolib: cdev: remove recalculation of offset
Remove recalculation of offset from desc, where desc itself was calculated
from offset.
There is no benefit from the desc -> hwgpio conversion in this context.
The only implicit benefit of the offset -> desc -> hwgpio is
the range check in the offset -> desc, but where desc is required you
still get that, and where desc isn't required it is simpler to perform
the range check directly.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions