Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71476
b: refs/heads/master
c: ed11399
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Oct 19, 2007
1 parent 897f12e commit 29133ff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 532237eff1f271302ed923af6d811a699d582bbc
refs/heads/master: ed11399da5ac7a07dc470d9dee9a7846917ec4aa
54 changes: 27 additions & 27 deletions trunk/drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct bits {
const char *set;
const char *unset;
};
#define BIT(m, s, u) { .mask = m, .set = s, .unset = u }
#define PXA_BIT(m, s, u) { .mask = m, .set = s, .unset = u }

static inline void
decode_bits(const char *prefix, const struct bits *bits, int num, u32 val)
Expand All @@ -100,17 +100,17 @@ decode_bits(const char *prefix, const struct bits *bits, int num, u32 val)
}

static const struct bits isr_bits[] = {
BIT(ISR_RWM, "RX", "TX"),
BIT(ISR_ACKNAK, "NAK", "ACK"),
BIT(ISR_UB, "Bsy", "Rdy"),
BIT(ISR_IBB, "BusBsy", "BusRdy"),
BIT(ISR_SSD, "SlaveStop", NULL),
BIT(ISR_ALD, "ALD", NULL),
BIT(ISR_ITE, "TxEmpty", NULL),
BIT(ISR_IRF, "RxFull", NULL),
BIT(ISR_GCAD, "GenCall", NULL),
BIT(ISR_SAD, "SlaveAddr", NULL),
BIT(ISR_BED, "BusErr", NULL),
PXA_BIT(ISR_RWM, "RX", "TX"),
PXA_BIT(ISR_ACKNAK, "NAK", "ACK"),
PXA_BIT(ISR_UB, "Bsy", "Rdy"),
PXA_BIT(ISR_IBB, "BusBsy", "BusRdy"),
PXA_BIT(ISR_SSD, "SlaveStop", NULL),
PXA_BIT(ISR_ALD, "ALD", NULL),
PXA_BIT(ISR_ITE, "TxEmpty", NULL),
PXA_BIT(ISR_IRF, "RxFull", NULL),
PXA_BIT(ISR_GCAD, "GenCall", NULL),
PXA_BIT(ISR_SAD, "SlaveAddr", NULL),
PXA_BIT(ISR_BED, "BusErr", NULL),
};

static void decode_ISR(unsigned int val)
Expand All @@ -120,21 +120,21 @@ static void decode_ISR(unsigned int val)
}

static const struct bits icr_bits[] = {
BIT(ICR_START, "START", NULL),
BIT(ICR_STOP, "STOP", NULL),
BIT(ICR_ACKNAK, "ACKNAK", NULL),
BIT(ICR_TB, "TB", NULL),
BIT(ICR_MA, "MA", NULL),
BIT(ICR_SCLE, "SCLE", "scle"),
BIT(ICR_IUE, "IUE", "iue"),
BIT(ICR_GCD, "GCD", NULL),
BIT(ICR_ITEIE, "ITEIE", NULL),
BIT(ICR_IRFIE, "IRFIE", NULL),
BIT(ICR_BEIE, "BEIE", NULL),
BIT(ICR_SSDIE, "SSDIE", NULL),
BIT(ICR_ALDIE, "ALDIE", NULL),
BIT(ICR_SADIE, "SADIE", NULL),
BIT(ICR_UR, "UR", "ur"),
PXA_BIT(ICR_START, "START", NULL),
PXA_BIT(ICR_STOP, "STOP", NULL),
PXA_BIT(ICR_ACKNAK, "ACKNAK", NULL),
PXA_BIT(ICR_TB, "TB", NULL),
PXA_BIT(ICR_MA, "MA", NULL),
PXA_BIT(ICR_SCLE, "SCLE", "scle"),
PXA_BIT(ICR_IUE, "IUE", "iue"),
PXA_BIT(ICR_GCD, "GCD", NULL),
PXA_BIT(ICR_ITEIE, "ITEIE", NULL),
PXA_BIT(ICR_IRFIE, "IRFIE", NULL),
PXA_BIT(ICR_BEIE, "BEIE", NULL),
PXA_BIT(ICR_SSDIE, "SSDIE", NULL),
PXA_BIT(ICR_ALDIE, "ALDIE", NULL),
PXA_BIT(ICR_SADIE, "SADIE", NULL),
PXA_BIT(ICR_UR, "UR", "ur"),
};

static void decode_ICR(unsigned int val)
Expand Down

0 comments on commit 29133ff

Please sign in to comment.