Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295249
b: refs/heads/master
c: 32d322b
h: refs/heads/master
i:
  295247: 18fe842
v: v3
  • Loading branch information
Wolfram Sang authored and Linus Torvalds committed Mar 23, 2012
1 parent ed3bb0b commit 6ce8825
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 30 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: fef931ff98fe78bea804d9b4c49d410a7a97988c
refs/heads/master: 32d322bcb0d6886084197247e30aa130956d5978
48 changes: 19 additions & 29 deletions trunk/drivers/rtc/rtc-ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ enum ds_type {
m41t00,
mcp7941x,
rx_8025,
last_ds_type /* always last */
// rs5c372 too? different address...
};

Expand Down Expand Up @@ -120,30 +121,23 @@ struct chip_desc {
unsigned alarm:1;
};

static const struct chip_desc chips[] = {
[ds_1307] = {
.nvram56 = 1,
},
[ds_1337] = {
.alarm = 1,
},
[ds_1338] = {
.nvram56 = 1,
},
[ds_1339] = {
.alarm = 1,
},
[ds_1340] = {
},
[ds_3231] = {
.alarm = 1,
},
[m41t00] = {
},
[mcp7941x] = {
},
[rx_8025] = {
}, };
static const struct chip_desc chips[last_ds_type] = {
[ds_1307] = {
.nvram56 = 1,
},
[ds_1337] = {
.alarm = 1,
},
[ds_1338] = {
.nvram56 = 1,
},
[ds_1339] = {
.alarm = 1,
},
[ds_3231] = {
.alarm = 1,
},
};

static const struct i2c_device_id ds1307_id[] = {
{ "ds1307", ds_1307 },
Expand Down Expand Up @@ -836,11 +830,7 @@ static int __devinit ds1307_probe(struct i2c_client *client,
}

break;
case rx_8025:
case ds_1337:
case ds_1339:
case ds_1388:
case ds_3231:
default:
break;
}

Expand Down

0 comments on commit 6ce8825

Please sign in to comment.