hwmon: epm_adc: Update generic request command
Update generic command to perform a spi_sync() request once. The library will handle request to perform a command request and obtain the result of the requests separately. Change-Id: Iea69df0b93699aba6799123d60c07ef93f1ac8c4 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
This commit is contained in:
parent
6f60b2e926
commit
f883ae6f18
|
@ -168,12 +168,6 @@ static int epm_psoc_generic_request(struct epm_adc_drv *epm_adc,
|
|||
t.len = sizeof(tx_buf);
|
||||
t.bits_per_word = EPM_ADC_SPI_BITS_PER_WORD;
|
||||
|
||||
rc = spi_sync(epm_adc->epm_spi_client, &m);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
memset(tx_buf, 0, sizeof(tx_buf));
|
||||
|
||||
rc = spi_sync(epm_adc->epm_spi_client, &m);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
|
Loading…
Reference in New Issue