Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154399
b: refs/heads/master
c: e4031d5
h: refs/heads/master
i:
  154397: 62b9f57
  154395: b7e439d
  154391: 267edb3
  154383: ec7ee99
  154367: 07a4023
v: v3
  • Loading branch information
Sonny Rao authored and Benjamin Herrenschmidt committed Jun 26, 2009
1 parent 549ecdb commit aed37fd
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 4a5cbf17c49a6024a6d7baf03efdffb8ed252bb1
refs/heads/master: e4031d52c57b17c76bbdb15fcf1a32a9f87d9756
17 changes: 10 additions & 7 deletions trunk/drivers/char/bsr.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ static struct class *bsr_class;
static int bsr_major;

enum {
BSR_8 = 0,
BSR_16 = 1,
BSR_64 = 2,
BSR_128 = 3,
BSR_UNKNOWN = 4,
BSR_MAX = 5,
BSR_8 = 0,
BSR_16 = 1,
BSR_64 = 2,
BSR_128 = 3,
BSR_4096 = 4,
BSR_UNKNOWN = 5,
BSR_MAX = 6,
};

static unsigned bsr_types[BSR_MAX];
Expand Down Expand Up @@ -218,9 +219,11 @@ static int bsr_add_node(struct device_node *bn)
case 128:
cur->bsr_type = BSR_128;
break;
case 4096:
cur->bsr_type = BSR_4096;
break;
default:
cur->bsr_type = BSR_UNKNOWN;
printk(KERN_INFO "unknown BSR size %d\n",cur->bsr_bytes);
}

cur->bsr_num = bsr_types[cur->bsr_type];
Expand Down

0 comments on commit aed37fd

Please sign in to comment.