Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd91cfd3 authored by Chun Zhang's avatar Chun Zhang
Browse files

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: default avatarChun Zhang <chunz@codeaurora.org>
parent af83c6c7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3,7 +3,7 @@
 *
 *
 *  Copyright (C) 2009 Samsung Electronics
 *  Copyright (C) 2009 Samsung Electronics
 *  Kyungmin Park <kyungmin.park@samsung.com>
 *  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
 * 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
 * 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) |
	value |= (haptic->pdata->mode_ctrl << 3) |
		(haptic->pdata->overdrive_high << 5) |
		(haptic->pdata->overdrive_high << 5) |
		(haptic->pdata->overdrive_en << 5) |
		(haptic->pdata->overdrive_en << 6) |
		(haptic->pdata->chip_en << 7);
		(haptic->pdata->chip_en << 7);


	rc = isa1200_write_reg(client, ISA1200_HCTRL0, value);
	rc = isa1200_write_reg(client, ISA1200_HCTRL0, value);