Skip to content

FROMGIT: thermal: qcom-spmi-adc-tm5: drop IIO_VAL_INT check in adc_tm_5_get_temp - #1775

Open
JeevanPallapothu999 wants to merge 2 commits into
qualcomm-linux:tech/pmic/miscfrom
JeevanPallapothu999:for-kodiak-thermal-zones
Open

FROMGIT: thermal: qcom-spmi-adc-tm5: drop IIO_VAL_INT check in adc_tm_5_get_temp#1775
JeevanPallapothu999 wants to merge 2 commits into
qualcomm-linux:tech/pmic/miscfrom
JeevanPallapothu999:for-kodiak-thermal-zones

Conversation

@JeevanPallapothu999

@JeevanPallapothu999 JeevanPallapothu999 commented Sep 7, 2026

Copy link
Copy Markdown

Commit bb21ee3 ("iio: Fix iio_multiply_value use in iio_read_channel_processed_scale") fixed the
iio_read_channel_processed_scale to return 0 on success instead of IIO_VAL_INT (1). The existing check in adc_tm5_get_temp() treated a successful return as an error because it expected IIO_VAL_INT. Drop the redundant ret != IIO_VAL_INT condition and rely solely on the negative error check.

Fixes: bb21ee3 ("iio: Fix iio_multiply_value use in iio_read_channel_processed_scale")

Reviewed-by: Jonathan Cameron jonathan.cameron@oss.qualcomm.com
Acked-by: Jonathan Cameron jonathan.cameron@oss.qualcomm.com #from IIO
Link: https://lore.kernel.org/all/20260724-adc-tm5-drop-iio-val-int-check-v1-1-0b85a0895dd7@oss.qualcomm.com/
CRs-Fixed: 4636200

…5_get_temp

Commit bb21ee3 ("iio: Fix iio_multiply_value use in
iio_read_channel_processed_scale") fixed the
iio_read_channel_processed_scale to return 0 on success instead
of IIO_VAL_INT (1). The existing check in adc_tm5_get_temp()
treated a successful return as an error because it expected
IIO_VAL_INT. Drop the redundant `ret != IIO_VAL_INT` condition
and rely solely on the negative error check.

Fixes: bb21ee3 ("iio: Fix iio_multiply_value use in iio_read_channel_processed_scale")
Signed-off-by: Rakesh Kota <rakesh.kota@oss.qualcomm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Acked-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> #from IIO
Link: https://lore.kernel.org/all/20260724-adc-tm5-drop-iio-val-int-check-v1-1-0b85a0895dd7@oss.qualcomm.com/
@qcomlnxci
qcomlnxci requested review from a team, QUIC-kamalw, jprakash-qc and kotarake and removed request for a team September 7, 2026 09:10
@qcomlnxci
qcomlnxci requested a review from a team September 8, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants