Commit 8be2f84a authored by Vinod Koul's avatar Vinod Koul

soundwire: remove SDW_REG_SHIFT()

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: default avatarVinod Koul <vkoul@kernel.org>
Tested-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200903114504.1202143-10-vkoul@kernel.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c30f9298
...@@ -4,13 +4,6 @@ ...@@ -4,13 +4,6 @@
#ifndef __SDW_REGISTERS_H #ifndef __SDW_REGISTERS_H
#define __SDW_REGISTERS_H #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 * SDW registers as defined by MIPI 1.2 Spec
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment