misc: isa1200: correct overdrive enablement bit shift

Overdrive enablement bit sits at 6th bit of control register 0.
Current shifting overwrites overdrive high bit.

Change-Id: I4cdd435da86a234ccf0465462be7626162cc8a9d
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
This commit is contained in:
Chun Zhang
2014-01-21 16:50:50 -08:00
committed by Bryan Huntsman
parent 67835facd1
commit d02c50dadc
+2 -2
View File
@@ -3,7 +3,7 @@
*
* Copyright (C) 2009 Samsung Electronics
* Kyungmin Park <kyungmin.park@samsung.com>
* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -318,7 +318,7 @@ static int isa1200_setup(struct i2c_client *client)
value |= (haptic->pdata->mode_ctrl << 3) |
(haptic->pdata->overdrive_high << 5) |
(haptic->pdata->overdrive_en << 5) |
(haptic->pdata->overdrive_en << 6) |
(haptic->pdata->chip_en << 7);
rc = isa1200_write_reg(client, ISA1200_HCTRL0, value);