From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADA87C636CD for ; Tue, 7 Feb 2023 13:05:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232225AbjBGNFU (ORCPT ); Tue, 7 Feb 2023 08:05:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232163AbjBGNFA (ORCPT ); Tue, 7 Feb 2023 08:05:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4229A3A5AB for ; Tue, 7 Feb 2023 05:04:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9F4336140B for ; Tue, 7 Feb 2023 13:04:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A694DC433D2; Tue, 7 Feb 2023 13:04:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1675775089; bh=R8yxPxswQfdVA4vNsGwfUaT5orb6tITM5WhgNHlhtt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qZWvZfaxarSiel2hoIGjSdNez2r6RzuooWy4WiybvkYagx2EFvrXwvC8Ef+WJdKMs myj82OzSyMq2Fwdn4m+D69sDmpvq5RHb8UgKb2dKHMefdmp7HTq3xOj+sUq7WrTf9w QhvsHol1EfGGkRWKOSiI4DC9lIX9CMatAbXgKqEo= 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 6.1 132/208] iio: hid: fix the retval in accel_3d_capture_sample Date: Tue, 7 Feb 2023 13:56:26 +0100 Message-Id: <20230207125640.400571599@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230207125634.292109991@linuxfoundation.org> References: <20230207125634.292109991@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 @@ -280,6 +280,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;