summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-09-04 22:59:20 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-09-04 22:59:20 +0200
commit9f7182d0542f4c82b6fe4722b8b9389021ad6ae9 (patch)
treeb468abd51a26696a1fae096919d9216363fbcdce /libsensors
parent65c972192bceaf55de6f50a88d619978acf7084a (diff)
downloaddevice_samsung_i9300-9f7182d0542f4c82b6fe4722b8b9389021ad6ae9.zip
device_samsung_i9300-9f7182d0542f4c82b6fe4722b8b9389021ad6ae9.tar.gz
device_samsung_i9300-9f7182d0542f4c82b6fe4722b8b9389021ad6ae9.tar.bz2
i9300: libsensors: fix compass orientation
Change-Id: I35255735cc895047d7594bdb595db052a8a086ac
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/akm8975.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/akm8975.c b/libsensors/akm8975.c
index 3059a12..a8352ca 100644
--- a/libsensors/akm8975.c
+++ b/libsensors/akm8975.c
@@ -292,7 +292,7 @@ int akm8975_init(struct exynos_sensors_handlers *handlers,
}
i2c_data[0] = 3;
- i2c_data[1] = AK8975_FUSE_ASAX;
+ i2c_data[1] = AK8975_FUSE_ASAY;
rc = ioctl(device_fd, ECS_IOCTL_READ, &i2c_data);
if (rc < 0) {
ALOGE("%s: Unable to set read akm8975 FUSE data", __func__);