Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86795
b: refs/heads/master
c: daa49ff
h: refs/heads/master
i:
  86793: 7182fca
  86791: 0df5d89
v: v3
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Mar 5, 2008
1 parent ee866e7 commit be3fe02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: fbc357df2e7728feb010148bed4eccb03a181610
refs/heads/master: daa49ff50a0cd1ddf88019e9afc41e26640ab1c4
18 changes: 9 additions & 9 deletions trunk/drivers/w1/masters/ds1wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ struct ds1wm_data {
static inline void ds1wm_write_register(struct ds1wm_data *ds1wm_data, u32 reg,
u8 val)
{
__raw_writeb(val, ds1wm_data->map + (reg << ds1wm_data->bus_shift));
__raw_writeb(val, ds1wm_data->map + (reg << ds1wm_data->bus_shift));
}

static inline u8 ds1wm_read_register(struct ds1wm_data *ds1wm_data, u32 reg)
{
return __raw_readb(ds1wm_data->map + (reg << ds1wm_data->bus_shift));
return __raw_readb(ds1wm_data->map + (reg << ds1wm_data->bus_shift));
}


Expand Down Expand Up @@ -150,8 +150,8 @@ static int ds1wm_reset(struct ds1wm_data *ds1wm_data)
timeleft = wait_for_completion_timeout(&reset_done, DS1WM_TIMEOUT);
ds1wm_data->reset_complete = NULL;
if (!timeleft) {
dev_dbg(&ds1wm_data->pdev->dev, "reset failed\n");
return 1;
dev_err(&ds1wm_data->pdev->dev, "reset failed\n");
return 1;
}

/* Wait for the end of the reset. According to the specs, the time
Expand All @@ -168,11 +168,11 @@ static int ds1wm_reset(struct ds1wm_data *ds1wm_data)
(ds1wm_data->active_high ? DS1WM_INTEN_IAS : 0));

if (!ds1wm_data->slave_present) {
dev_dbg(&ds1wm_data->pdev->dev, "reset: no devices found\n");
return 1;
}
dev_dbg(&ds1wm_data->pdev->dev, "reset: no devices found\n");
return 1;
}

return 0;
return 0;
}

static int ds1wm_write(struct ds1wm_data *ds1wm_data, u8 data)
Expand Down Expand Up @@ -335,7 +335,7 @@ static int ds1wm_probe(struct platform_device *pdev)
if (!pdev)
return -ENODEV;

ds1wm_data = kzalloc(sizeof (*ds1wm_data), GFP_KERNEL);
ds1wm_data = kzalloc(sizeof(*ds1wm_data), GFP_KERNEL);
if (!ds1wm_data)
return -ENOMEM;

Expand Down

0 comments on commit be3fe02

Please sign in to comment.