diff options
author | Joe Perches <[email protected]> | 2015-05-18 10:01:03 -0700 |
---|---|---|
committer | Mark Brown <[email protected]> | 2015-05-20 19:09:51 +0100 |
commit | c53403a37cf083ce85da720f18918f73580d0064 (patch) | |
tree | 448def944acb865f5f72a8244fb5e3ceef9e5ab1 /scripts/gdb/linux/modules.py | |
parent | e4e8ccccf314eacc935e699073575de7816338e4 (diff) |
regulator: max77686: fix gpio_enabled shift wrapping bug
The code should handle more than 32 bits here because "id"
can be a value up to MAX77686_REGULATORS (currently 34).
Convert the gpio_enabled type to DECLARE_BITMAP and use
test_bit/set_bit.
Fixes: 3307e9025d29 ("regulator: max77686: Add GPIO control")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Joe Perches <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions