diff options
author | Vinod Koul <vkoul@kernel.org> | 2020-09-03 16:41:00 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-09-03 16:41:00 +0530 |
commit | c14815d184eb283c6af6dc0a1bd7fb6da68f0cff (patch) | |
tree | 358148fcd689ad16896201518b16348be4cd2706 | |
parent | 7550301ab5022b0da12b9201678910819bfb36fe (diff) | |
download | soundwire-topic/reg_cleanup.tar.gz |
soundwire: remove SDW_REG_SHIFT()topic/reg_cleanup
soundwire had defined SDW_REG_SHIFT to calculate shift values for
bitmasks, but now that we have better things in bitfield.h, remove this.
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | include/linux/soundwire/sdw_registers.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/soundwire/sdw_registers.h b/include/linux/soundwire/sdw_registers.h index 5d3c271af7d100..f420e805977983 100644 --- a/include/linux/soundwire/sdw_registers.h +++ b/include/linux/soundwire/sdw_registers.h @@ -5,13 +5,6 @@ #define __SDW_REGISTERS_H /* - * typically we define register and shifts but if one observes carefully, - * the shift can be generated from MASKS using few bit primitaives like ffs - * etc, so we use that and avoid defining shifts - */ -#define SDW_REG_SHIFT(n) (ffs(n) - 1) - -/* * SDW registers as defined by MIPI 1.2 Spec */ #define SDW_REGADDR GENMASK(14, 0) |