From e8e26f7798658cd8ea57fecf206bf2ee34c857af Mon Sep 17 00:00:00 2001 From: Markinus Date: Sun, 19 Sep 2010 23:52:54 +0200 Subject: [PATCH] headset: fix wrong i2c command Fixed a copy/paste error, thx to LeTama --- arch/arm/mach-msm/htc_headset_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/htc_headset_gpio.c b/arch/arm/mach-msm/htc_headset_gpio.c index debf035d..bc16e4e0 100644 --- a/arch/arm/mach-msm/htc_headset_gpio.c +++ b/arch/arm/mach-msm/htc_headset_gpio.c @@ -98,7 +98,7 @@ int microp_get_remote_adc(uint32_t *val) if (!val) return -EIO; - ret = microp_i2c_write(MICROP_I2C_RCMD_ADC_VALUE, data, 2); + ret = microp_i2c_read(MICROP_I2C_RCMD_ADC_VALUE, data, 2); if (ret < 0) { pr_err("%s: request adc fail\n", __func__);