Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp451895pxb; Thu, 9 Sep 2021 04:56:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4FhZ9fTSGxPbJPBuGeQdhQB+jqpHwSPJx34OX+vewCxjY0Z+1/XbO7KxmhqaBvhvpPGSo X-Received: by 2002:aa7:c4ce:: with SMTP id p14mr2786592edr.175.1631188562580; Thu, 09 Sep 2021 04:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188562; cv=none; d=google.com; s=arc-20160816; b=xpkd2VHQm2mqjnrLljALOT+x0BGS4gY/DL+f3z1LHYtuPHtY4PoQn4+00fs/PXXBCA sR7sUqHKTzvBFi8ksRrCULJQVfP7igu8goHLl7zSILfPx8T8RzRrQ6vlLu6x03kO7p2E CMT5sPz9RkPBYgvXI+w8zn1TVM0t2U6nHVnZC5kSQqLOTlKtU8QvSEWwQoLLDQRiYIUl uQehuHmwFRHwB4eU8Pe+t85Kl1hW4sYdXRLwC9CATXtLrBkIvLmVfzVzQYs6uIzosPnH tItrai2Zk0bSwYaT11JYO32aXf7Wh1Cechf8XR7OCZyeBaitCVC+QV7vl6e70lxi14Tf zc1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=psihhYU631I93v0ZkU/dnPZ5K6WRlAaSGMZ969ivNS4=; b=Vybtbv2f7LmmraFY8gtRHXlrWx0yPz0/ho2QII1MNUz0MB8xJwVgVsSJZD/Jiw8eUE PSyO1Q3tSz3ZimNePZTJqv4ISVUbV1b0HS48RJvXcbVsafBWXqtde/oankpbRkk+ZV58 O8oUw0WPWvVNiWtoZrvpZRAR5cF04XLT42Cp7okj9Z4HVh9wAw8igzERDF42IISUFsON TsGaXY5zPCGFSFcdlvXS+5pChvMwSn1Boc8FiNJ8cHCS05741bswV9wYwILjdn0O59Nw hvtqaG0vLVdVJtAS9LiAqbztcrrc9o6+0otWE5mTCUa2xgmglapW12fd2m9KZS1TqVih wIqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJdAdlNT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si465547edl.58.2021.09.09.04.55.38; Thu, 09 Sep 2021 04:56:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJdAdlNT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239895AbhIILwJ (ORCPT + 99 others); Thu, 9 Sep 2021 07:52:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242216AbhIILse (ORCPT ); Thu, 9 Sep 2021 07:48:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4C73661263; Thu, 9 Sep 2021 11:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187807; bh=Wz14k6GnJ86+Q3oVwhuo0nWxt6u7fgky9qP3EUu+1yo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nJdAdlNTrhzhHLef6Yj/EhU5XVJpeBJls++zMRuhCPoZ0SeqUwceDSEggR/u+hbDm VBbV4zuXNX5V+7cAR1GK/cchDGGgbuuprVp/ZajTaLmA9xiCEQaD2QUgCejaLH+ru2 aftNA9ROPxoTzK/WFXISp/47gvIdNsBKauqRuQqouRTvKQXgXxcJfeiNT7aUNYLpMP i/U5D6lS7JHusJDDtGBkhyPXk4JAOQhfX2XOn9w8q0y/NUf0/+lnNZ0X1CrkUCDEWa fgQ4x92+knUD2cObIm5HWFB8d4vvdZdbOLHeK6lQmOhMx63BQZhHlHn13fd4zwsjXW MUj2Rgoj6ksbw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin , linux-media@vger.kernel.org Subject: [PATCH AUTOSEL 5.14 109/252] media: TDA1997x: fix tda1997x_query_dv_timings() return value Date: Thu, 9 Sep 2021 07:38:43 -0400 Message-Id: <20210909114106.141462-109-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krzysztof Hałasa [ Upstream commit 7dee1030871a48d4f3c5a74227a4b4188463479a ] Correctly propagate the tda1997x_detect_std error value. Signed-off-by: Krzysztof Hałasa Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/tda1997x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c index 91e6db847bb5..891f81f0c18b 100644 --- a/drivers/media/i2c/tda1997x.c +++ b/drivers/media/i2c/tda1997x.c @@ -1695,14 +1695,15 @@ static int tda1997x_query_dv_timings(struct v4l2_subdev *sd, struct v4l2_dv_timings *timings) { struct tda1997x_state *state = to_state(sd); + int ret; v4l_dbg(1, debug, state->client, "%s\n", __func__); memset(timings, 0, sizeof(struct v4l2_dv_timings)); mutex_lock(&state->lock); - tda1997x_detect_std(state, timings); + ret = tda1997x_detect_std(state, timings); mutex_unlock(&state->lock); - return 0; + return ret; } static const struct v4l2_subdev_video_ops tda1997x_video_ops = { -- 2.30.2