aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <[email protected]>2023-08-10 22:00:44 +0000
committerBartosz Golaszewski <[email protected]>2023-08-11 19:31:59 +0000
commit33f83d13ded164cd49ce2a3bd2770115abc64e6f (patch)
tree2a70eba222ab1d9422d96fc2958e67b380ef5ac4 /rust/helpers.c
parentgpio: sim: mark the GPIO chip as a one that can sleep (diff)
downloadkernel-33f83d13ded164cd49ce2a3bd2770115abc64e6f.tar.gz
kernel-33f83d13ded164cd49ce2a3bd2770115abc64e6f.zip
gpio: ws16c48: Fix off-by-one error in WS16C48 resource region extent
The WinSystems WS16C48 I/O address region spans offsets 0x0 through 0xA, which is a total of 11 bytes. Fix the WS16C48_EXTENT define to the correct value of 11 so that access to necessary device registers is properly requested in the ws16c48_probe() callback by the devm_request_region() function call. Fixes: 2c05a0f29f41 ("gpio: ws16c48: Implement and utilize register structures") Cc: [email protected] Cc: Paul Demetrotion <[email protected]> Signed-off-by: William Breathitt Gray <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions