Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp501675pxb; Thu, 9 Sep 2021 06:00:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytNppchspp4XnkPEXcK0Kb/PTDLV0Lvzp4u0hbCRQzy3SaEcUnDFMbx9NeGKSs0+GN1V0K X-Received: by 2002:a5d:8d1a:: with SMTP id p26mr2565049ioj.141.1631192428881; Thu, 09 Sep 2021 06:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631192428; cv=none; d=google.com; s=arc-20160816; b=yFPku0EsdK1LMgVj8LFsmC5uOr2AMug1Nu0E99Avb6PZ+1sZl6v5SEQPSydZm0oOpa TPRzXDDiYQQLgXXDaGxaemBRA4QqdRei4pl8QLIhThTlZuBLfmMdG1foVY3BJMMkHXvq eS+cG9yW/DSrYSm1nu708pBOGw7GraHubBBu3vFwCYq2cqxE5VWb5N8S0oalJR35Pj1J cm0ds/GQHGp1Mdbp3LTWM5tOw7wjPyhjHmYRFOMNutzWhfYWBQIBt6hEKmRnn6esMJq8 3FlJSKGY415lTyuzv9moKYwpJJSdLayet9yFmUX/cd2byi2gvsfd8gF7fI9b7DOBcXw4 MMWQ== 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=Vbw7DO8VLZwa7HeI8c4bDyQSuHTxILCzFmyn50lSqUU=; b=Ep6fQ/4uoIfG//ldJlj6S9LBGdpild4GqTGFqum+dstZ6nlMWxDZ3vf+lf1pVsuhzn W+PArrrYpV67v3bTZ04KnZ8u1JLuzIUw9tlO6xS0iJE8syvvwaNvRcQrz1ErKQAyV7tx ZsGfyAdiMOBYwfHi9Bzd2RIXZqdVCfL9QVYJkh6hsOz394UrbcZOyvQJ8m+OnsHzhHzH F+AVG2Qqp40Ea2LDlYOFQS6ClSF2bfY6ZX0YnRlkUC2h4jjWjJj/4WGqhCnCGn/uwEvR 9ssXS8WhowJ0uTKu455M9uA43vBEku+v2iFgj6o4eIykgoG2Z4/ssAI2xEveY1UmSDtP mJqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o06PDsGp; 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 u2si1675659ioc.87.2021.09.09.06.00.12; Thu, 09 Sep 2021 06:00:28 -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=o06PDsGp; 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 S1357013AbhIIM7W (ORCPT + 99 others); Thu, 9 Sep 2021 08:59:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:60534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353596AbhIIMrE (ORCPT ); Thu, 9 Sep 2021 08:47:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D99363214; Thu, 9 Sep 2021 11:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188573; bh=0wzEjVX7fdd5+99qUUeHAxUAR+j6i0qFrKM9/R1zZVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o06PDsGpOYK+Fl769cpsdQzciqmq1BkoIbY0FsZrgm5vF45SsNpnWQKh/s4OUVqLZ +TVcPK/HAvRl8aYOWf6qnGqfD1w07sEK+tXQHwcDPVaeEecowdKa93JgDE5EadRNZ4 +mw2cmlmiuLbWpdAxDjOPeu29HXH/bp+3Lv+Vdvb+O0MIGT3uTPTgxj56x4bsrPXML jfgjCA3fYtCZlxddufv6qJWYdMFAX5/x/wq4Zk2IRbwTb0ULqCEFUWIBRTXcn+dQRJ s+7+PdrW/Y2yWcAu9mpJP67p0nHfV8frdOLFIYJcGjl7N7hXNGRf6vcjX2wqiyLWHV 587MDBATun/lA== 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.4 052/109] media: TDA1997x: fix tda1997x_query_dv_timings() return value Date: Thu, 9 Sep 2021 07:54:09 -0400 Message-Id: <20210909115507.147917-52-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115507.147917-1-sashal@kernel.org> References: <20210909115507.147917-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 e43d8327b810..fc6cea5f3d3b 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