summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-wm8350.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-05-15 17:55:22 -0700
committerDavid S. Miller <davem@davemloft.net>2017-05-16 12:59:04 -0400
commit4aa3b7660aa79bb030aaa887dc16a60e02fa4348 (patch)
tree1a96f186c151530f5c6b24bdb071934b34566418 /drivers/gpio/gpio-wm8350.c
parentabeeec4adf6a6fe71a6a4d8199ff0a533d73a57f (diff)
nfp: add a helper for wrapping descriptor index
We have a number of places where we calculate the descriptor index based on a value which may have overflown. Create a macro for masking with the ring size. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpio/gpio-wm8350.c')
0 files changed, 0 insertions, 0 deletions