summaryrefslogtreecommitdiff
path: root/lib/debug_locks.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-11-30 19:49:56 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-12-01 16:13:05 +0300
commite1610431b95ccbada74e1393b0944ef4c2750624 (patch)
tree86b6a1fd239c2daf14671c739a14427aee98f944 /lib/debug_locks.c
parent7bc14ff2952da56d445efab50256569fc96aa95b (diff)
downloadlinux-e1610431b95ccbada74e1393b0944ef4c2750624.tar.xz
gpio: dwapb: clarify usage of the register file version
First of all, it's obvious that different versions can't be provided simultaneously. Hence, versions can't be bit masks. Second, due to above we have to mask out the version field in the flags and only that can be evaluated against the certain version. Clarify all above by: - introducing GPIO_REG_OFFSET_V1 and GPIO_REG_OFFSET_MASK - replacing conditional to mask out bits and compare to a version Luckily there is no functional change, so no need to backport this. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Serge Semin <fancer.lancer@gmail.com> Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'lib/debug_locks.c')
0 files changed, 0 insertions, 0 deletions