Skip to contentSkip to conversation

mfd: arizona: Correct register definition for FLL2_SYNC_BW

PATCH Applied Charles Keepax 2 participants 2 messages Sep 21, 2013 – Sep 23, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: arizona: Correct register definition for FLL2_SYNC_BW

We had specified the mask twice for FLL2_SYNC_BW change the first mask definition in a bit definition to match the other fields.

---
 include/linux/mfd/arizona/registers.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mfd/arizona/registers.h +1 -1
index 4706d3d..cb49417 100644
@@ -1908,7 +1908,7 @@
 #define ARIZONA_FLL2_SYNC_GAIN_MASK              0x003c  /* FLL2_SYNC_GAIN */
 #define ARIZONA_FLL2_SYNC_GAIN_SHIFT                  2  /* FLL2_SYNC_GAIN */
 #define ARIZONA_FLL2_SYNC_GAIN_WIDTH                  4  /* FLL2_SYNC_GAIN */
-#define ARIZONA_FLL2_SYNC_BW_MASK                0x0001  /* FLL2_SYNC_BW */
+#define ARIZONA_FLL2_SYNC_BW                     0x0001  /* FLL2_SYNC_BW */
 #define ARIZONA_FLL2_SYNC_BW_MASK                0x0001  /* FLL2_SYNC_BW */
 #define ARIZONA_FLL2_SYNC_BW_SHIFT                    0  /* FLL2_SYNC_BW */
 #define ARIZONA_FLL2_SYNC_BW_WIDTH                    1  /* FLL2_SYNC_BW */
Signature · 1 line
1.7.2.5
Applied
#1 lore raw
Quoted 13 lines · Charles Keepax

We had specified the mask twice for FLL2_SYNC_BW change the first mask definition in a bit definition to match the other fields.

---
 include/linux/mfd/arizona/registers.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mfd/arizona/registers.h +0 -0
index 4706d3d..cb49417 100644

include/linux/mfd/arizona/registers.h line 1914

Quoted 8 lines
include/linux/mfd/arizona/registers.h +1 -1
@@ -1908,7 +1908,7 @@
 #define ARIZONA_FLL2_SYNC_GAIN_MASK              0x003c  /* FLL2_SYNC_GAIN */
 #define ARIZONA_FLL2_SYNC_GAIN_SHIFT                  2  /* FLL2_SYNC_GAIN */
 #define ARIZONA_FLL2_SYNC_GAIN_WIDTH                  4  /* FLL2_SYNC_GAIN */
-#define ARIZONA_FLL2_SYNC_BW_MASK                0x0001  /* FLL2_SYNC_BW */
+#define ARIZONA_FLL2_SYNC_BW                     0x0001  /* FLL2_SYNC_BW */
 #define ARIZONA_FLL2_SYNC_BW_MASK                0x0001  /* FLL2_SYNC_BW */
 #define ARIZONA_FLL2_SYNC_BW_SHIFT                    0  /* FLL2_SYNC_BW */
 #define ARIZONA_FLL2_SYNC_BW_WIDTH                    1  /* FLL2_SYNC_BW */

I don't really understand the point of the define, as they are always the same as their associated *_MASK, but this patch is in keeping with the remaining defines.

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog