headset: fix wrong i2c command

Fixed a copy/paste error, thx to LeTama
This commit is contained in:
Markinus 2010-09-19 23:52:54 +02:00
parent e6285026eb
commit e8e26f7798

View File

@ -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__);