Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282815
b: refs/heads/master
c: dbc26d9
h: refs/heads/master
i:
  282813: 1add9b4
  282811: 2d0d6eb
  282807: f43c154
  282799: 767c14f
  282783: 58b0d0f
  282751: 3c3a473
v: v3
  • Loading branch information
Robert Jarzmik authored and David Woodhouse committed Jan 9, 2012
1 parent 9e5aee9 commit a7de91e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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: 84a930581ef45e81cff0450b19ce5a70f24d50bb
refs/heads/master: dbc26d98f8b4a3d1d2f25d997a0a0aba4ea46add
16 changes: 9 additions & 7 deletions trunk/drivers/mtd/devices/docg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,13 +852,15 @@ static int dbg_protection_show(struct seq_file *s, void *p)
{
struct docg3 *docg3 = (struct docg3 *)s->private;
int pos = 0;
int protect = doc_register_readb(docg3, DOC_PROTECTION);
int dps0 = doc_register_readb(docg3, DOC_DPS0_STATUS);
int dps0_low = doc_register_readb(docg3, DOC_DPS0_ADDRLOW);
int dps0_high = doc_register_readb(docg3, DOC_DPS0_ADDRHIGH);
int dps1 = doc_register_readb(docg3, DOC_DPS1_STATUS);
int dps1_low = doc_register_readb(docg3, DOC_DPS1_ADDRLOW);
int dps1_high = doc_register_readb(docg3, DOC_DPS1_ADDRHIGH);
int protect, dps0, dps0_low, dps0_high, dps1, dps1_low, dps1_high;

protect = doc_register_readb(docg3, DOC_PROTECTION);
dps0 = doc_register_readb(docg3, DOC_DPS0_STATUS);
dps0_low = doc_register_readw(docg3, DOC_DPS0_ADDRLOW);
dps0_high = doc_register_readw(docg3, DOC_DPS0_ADDRHIGH);
dps1 = doc_register_readb(docg3, DOC_DPS1_STATUS);
dps1_low = doc_register_readw(docg3, DOC_DPS1_ADDRLOW);
dps1_high = doc_register_readw(docg3, DOC_DPS1_ADDRHIGH);

pos += seq_printf(s, "Protection = 0x%02x (",
protect);
Expand Down

0 comments on commit a7de91e

Please sign in to comment.