浏览代码

mfd: wm5102: Only use the lowest three bits of device revision

Only the lowest three bits contain device revision for WM5102, the high
bits have been repurposed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Mark Brown 12 年之前
父节点
当前提交
c6d6bfb186
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/mfd/arizona-core.c

+ 1 - 0
drivers/mfd/arizona-core.c

@@ -444,6 +444,7 @@ int arizona_dev_init(struct arizona *arizona)
 			arizona->type = WM5102;
 		}
 		apply_patch = wm5102_patch;
+		arizona->rev &= 0x7;
 		break;
 #endif
 #ifdef CONFIG_MFD_WM5110