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

Commit f883ae6f authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss
Browse files

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: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 6f60b2e9
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;