soundwire: remove SDW_REG_SHIFT()
authorVinod Koul <vkoul@kernel.org>
Thu, 3 Sep 2020 11:45:04 +0000 (17:15 +0530)
committerVinod Koul <vkoul@kernel.org>
Fri, 4 Sep 2020 09:16:42 +0000 (14:46 +0530)
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>
Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200903114504.1202143-10-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw_registers.h

index 5d3c271af7d1007d7bcd9fe033e7b3809f959025..f420e80597798353c0673f2205c1f214a12fd2f5 100644 (file)
@@ -4,13 +4,6 @@
 #ifndef __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
  */