Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317231
b: refs/heads/master
c: 040f3e5
h: refs/heads/master
i:
  317229: dbc97fb
  317227: df7c502
  317223: 1da3610
  317215: a610484
v: v3
  • Loading branch information
Leed Aguilar authored and Greg Kroah-Hartman committed Jun 7, 2012
1 parent 79c11a0 commit 80342cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74dcd439bf8c16b01f9f5a9dffb2b171ed94e2e5
refs/heads/master: 040f3e5833b9426aaeead6da8957a9b87f3ca9e8
11 changes: 11 additions & 0 deletions trunk/drivers/staging/iio/magnetometer/ak8975.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ static int ak8975_setup(struct i2c_client *client)
return ret;
}

/* After reading fuse ROM data set power-down mode */
ret = ak8975_write_data(client,
AK8975_REG_CNTL,
AK8975_REG_CNTL_MODE_POWER_DOWN,
AK8975_REG_CNTL_MODE_MASK,
AK8975_REG_CNTL_MODE_SHIFT);
if (ret < 0) {
dev_err(&client->dev, "Error in setting power-down mode\n");
return ret;
}

/*
* Precalculate scale factor (in Gauss units) for each axis and
* store in the device data.
Expand Down

0 comments on commit 80342cb

Please sign in to comment.