diff options
| author | Wengang Wu <wgw@motorola.com> | 2014-07-23 19:01:06 -0500 |
|---|---|---|
| committer | Wengang Wu <wgw@motorola.com> | 2014-07-23 19:01:06 -0500 |
| commit | 3ec0e610cc23c072b90c1bde3ff7bc767f6bac8d (patch) | |
| tree | 5e1da063acd7183666d466bec665467a142b61c6 /drivers/misc/c55_ctrl.c | |
| parent | 2394a8ad9dd527633e7220de4cbf307cc5fcc3f2 (diff) | |
| download | olio-linux-3.10-3ec0e610cc23c072b90c1bde3ff7bc767f6bac8d.tar.xz olio-linux-3.10-3ec0e610cc23c072b90c1bde3ff7bc767f6bac8d.zip | |
IKXCLOCK-3122 Smart Ambient: support ambient off gesture
Change-Id: I22622983c50f1d564f40314f92e49646279826f5
Diffstat (limited to 'drivers/misc/c55_ctrl.c')
| -rw-r--r-- | drivers/misc/c55_ctrl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/misc/c55_ctrl.c b/drivers/misc/c55_ctrl.c index 49f84e6bcb6..54ffc6e5b2b 100644 --- a/drivers/misc/c55_ctrl.c +++ b/drivers/misc/c55_ctrl.c @@ -170,8 +170,8 @@ static ssize_t c55_ctrl_enable(struct device *dev, gpio_set_value(cdata->ap_c55_int_gpio, 1); if (m4sensorhub_reg_write_1byte - (m4sensorhub, M4SH_REG_USERSETTINGS_SCREENSTATUS, - INTERACTIVE_ON, SCREEN_STATUS_INTERACTIVE_MASK) != 1) { + (m4sensorhub, M4SH_REG_USERSETTINGS_AUDIOSTATUS, + AUDIO_STATUS_ON, 0xFF) != 1) { dev_err(dev, "Unable to set screen status to 0x01\n"); mutex_unlock(&cdata->ctrl_mutex); return -EINVAL; @@ -190,8 +190,8 @@ static ssize_t c55_ctrl_enable(struct device *dev, } if (m4sensorhub_reg_write_1byte - (m4sensorhub, M4SH_REG_USERSETTINGS_SCREENSTATUS, - INTERACTIVE_OFF, SCREEN_STATUS_INTERACTIVE_MASK) != 1) { + (m4sensorhub, M4SH_REG_USERSETTINGS_AUDIOSTATUS, + AUDIO_STATUS_OFF, 0xFF) != 1) { dev_err(dev, "Unable to set screen status to 0x00\n"); mutex_unlock(&cdata->ctrl_mutex); return -EINVAL; @@ -376,8 +376,8 @@ static int c55_ctrl_suspend(struct platform_device *dev, pm_message_t state) } if (m4sensorhub_reg_write_1byte - (m4sensorhub, M4SH_REG_USERSETTINGS_SCREENSTATUS, - INTERACTIVE_OFF, SCREEN_STATUS_INTERACTIVE_MASK) != 1) { + (m4sensorhub, M4SH_REG_USERSETTINGS_AUDIOSTATUS, + AUDIO_STATUS_OFF, 0xFF) != 1) { dev_err(&dev->dev, "Unable to set screen status to 0x00\n"); } |