From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D57D1CA6F; Sat, 12 Sep 2026 10:18:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789208287; cv=none; b=bzdpkWsOPcrSJ73sp19lRgi2N7X1GWRkZmMsAuRI7Q8+5Wy3vzDz4OaiSOOAltEudYOt5U9IqKxgCVuGwGnrG5MG0GrKuSxOqciZ/ZqV0BcpbYLFFkYm0DidGH/Y+eE1X02DloGTFzvXNje5NjrGXs4lOU19ua8PjW4u/x9lxqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789208287; c=relaxed/simple; bh=23GZKVFxSDuai9e8Xthi6T6vietJNNc0bVqtgL8X3tc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dg9Gw69yuwP4Rt4yKKamJ31mj91AULBLmrQfjfL8Jfs9XFhlUIm0Wo/74d0fnGDrBPegCf3KzMX0BT8Rb/ew270y8hf2vOho6YZwLXKrQS7P0z3ycappNRyHYalBigUdhyf77FhOjopvRX4C8i4UJc2d9VWUw2wm1RObGiARrSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pG7mfljA; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pG7mfljA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 674C51F000FF; Sat, 12 Sep 2026 10:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789208286; bh=9tw8JSGOwNUIIx4/z+FWcLWWbOpfxIVOQAusJZMfovI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pG7mfljAWAR1EEzJ73Rvd6MRt7dfaT5Eyg13/gRD965Buk5Xibx0V0xhv9BnWz9en yUTuk4LCdJS/SdNYgbhUggN8kqAvLUcO0Gk0JejkvMRsoAGoXDoIi/nkaK46KOCryg SgPHTdJGW8LpOQUOnxDDLKPVhfVi5+F3zEArGGig= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rakesh Kota , Daniel Lezcano , Jonathan Cameron , Sasha Levin Subject: [PATCH 6.18 0586/1518] thermal/drivers/qcom-spmi-adc-tm5: Drop IIO_VAL_INT check in adc_tm5_get_temp Date: Sat, 12 Sep 2026 08:45:55 +0200 Message-ID: <20260912065636.683825948@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065623.398859879@linuxfoundation.org> References: <20260912065623.398859879@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rakesh Kota [ Upstream commit 0c569e22020f53ddfac0099b0aa193907bfbcd6f ] Commit bb21ee31f575 ("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: bb21ee31f575 ("iio: Fix iio_multiply_value use in iio_read_channel_processed_scale") Signed-off-by: Rakesh Kota Signed-off-by: Daniel Lezcano Reviewed-by: Jonathan Cameron Link: https://patch.msgid.link/20260724-adc-tm5-drop-iio-val-int-check-v1-1-0b85a0895dd7@oss.qualcomm.com Signed-off-by: Sasha Levin --- drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index d7f2e6ca92c2c..d1b086737bcd2 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -369,9 +369,6 @@ static int adc_tm5_get_temp(struct thermal_zone_device *tz, int *temp) if (ret < 0) return ret; - if (ret != IIO_VAL_INT) - return -EINVAL; - return 0; } -- 2.53.0