diff options
| author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2018-05-20 15:00:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-25 18:49:32 +0200 |
| commit | 0aaf256cf15df748e5637370564c6ee9389602e6 (patch) | |
| tree | 00e3f450cda472302103943580c4289a239e7074 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | staging: mt7621-gpio: replace 'mtk' to use correct one 'mediatek' (diff) | |
| download | linux-0aaf256cf15df748e5637370564c6ee9389602e6.tar.gz linux-0aaf256cf15df748e5637370564c6ee9389602e6.zip | |
staging: mt7621-gpio: avoid use of globals and use platform_data instead
Gpio driver have a some globals which can be avoided just
using platform_data in a proper form. This commit adds a new
struct mtk_data which includes all of those globals setting them
using platform_set_drvdata and devm_gpiochip_add_data functions.
With this properly set we are able to retrieve driver data along
the code using kernel api's so globals are not needed anymore.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions
