summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-05-25 18:54:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-01 11:17:05 +0200
commite119216dea2dd7c78e231c06b9822072bb4a553e (patch)
tree2f1fcfb03e4a0a3004d7f31c95cf5d6633d36aca /tools/perf/scripts/python/export-to-postgresql.py
parentba64745694e20b4aa6738f17c1583c7f4832daf5 (diff)
staging: mt7621-gpio: fix masks for gpio pin
BIT macro is being used to get mask for gpio's pin which is retrieved using 'hwirq' from struct irq_data. The problem here is that 'hwirq' can be as large as 95, and 1UL << 95 is unlikely to work well. Instead of using BIT macro use a new PIN_MASK macro which takes into account pin and WIDTH of the bank in order to make a proper mask for the gpio pin. Also 'd->hwirq' has been replaced by 'pin' in some places because there was a 'pin' variable in changed functions with the proper value. This improves readability. 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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions