hwmon: epm_adc: Fix clear buffer command

Currently when clients request to clear the PSOC buffer
the result returned to the user is not valid. This is
because the response byte that indicates the status
of the PSOC is the second byte and not the third.
Fix it by reading the appropriate byte to indicate
the status of the command request.

Change-Id: I1604274619bb881ecc2e0afc46979ae4eb85a154
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
This commit is contained in:
Siddartha Mohanadoss
2013-06-11 10:56:53 -07:00
parent 278815e80e
commit 3ff2063e2a
+1 -1
View File
@@ -1235,7 +1235,7 @@ static int epm_psoc_clear_buffer(struct epm_adc_drv *epm_adc)
if (rc)
return rc;
rc = rx_buf[2];
rc = rx_buf[1];
return rc;
}