From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 277B663B8 for ; Mon, 20 Feb 2023 13:40:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A52E8C433EF; Mon, 20 Feb 2023 13:40:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1676900451; bh=Fr0GxRRzMv25PPtAVcNBllDMv6eHjTTs70gy4sncUvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ePIn4ZFZoq0QUaL2IMkzARvDB+Ykq+cORR/VgSPQ56parVrelHK73RE17306G/s/Y 7+JJG72nom+h2ZIXAuRNtpVaeeWrSI7mZCHPFSjCyj/s0ar02w3TznHtLWd6FFbWaR IooGqJktI+vbK6NEza7bklzdcTt7z7QjFKgi+hzQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dmitry Perchanov , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 4.19 30/89] iio: hid: fix the retval in accel_3d_capture_sample Date: Mon, 20 Feb 2023 14:35:29 +0100 Message-Id: <20230220133554.224115302@linuxfoundation.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230220133553.066768704@linuxfoundation.org> References: <20230220133553.066768704@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Dmitry Perchanov commit f7b23d1c35d8b8de1425bdfccaefd01f3b7c9d1c upstream. Return value should be zero for success. This was forgotten for timestamp feature. Verified on RealSense cameras. Fixes: a96cd0f901ee ("iio: accel: hid-sensor-accel-3d: Add timestamp") Signed-off-by: Dmitry Perchanov Link: https://lore.kernel.org/r/a6dc426498221c81fa71045b41adf782ebd42136.camel@intel.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/hid-sensor-accel-3d.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iio/accel/hid-sensor-accel-3d.c +++ b/drivers/iio/accel/hid-sensor-accel-3d.c @@ -292,6 +292,7 @@ static int accel_3d_capture_sample(struc hid_sensor_convert_timestamp( &accel_state->common_attributes, *(int64_t *)raw_data); + ret = 0; break; default: break;