Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7888017ybl; Thu, 16 Jan 2020 07:15:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxFFKDaBnoPv94NgVDZmB/5RsvJKW5snnVgbFqzthsMK9Z3mHXEjgYYfNuRlJ7FKQrvEL6F X-Received: by 2002:aca:814:: with SMTP id 20mr4451727oii.159.1579187706762; Thu, 16 Jan 2020 07:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579187706; cv=none; d=google.com; s=arc-20160816; b=OOPRLtkvP070nbGovLswVxRj39P0Go60r+xput0ADkgN3X8uEyo3HrBHGCoz7GIPrs dOIZvNg6QUbx6IfTBfhzUy3qMna0St+ANH8DBoLbT47AI3mCARSNR15LjX6YGEGdctHq mNfEDb2yIkTfoiKm06qhSDJ7D4MLigtDmTdnDnulcDRGVGjwyGIQVtX/GMjt86EWYeN4 5hTfjl41p9jOQZseugGvD1zlqKM8n7YOCtpzaSUAegA3ngeFYksDYQ4DVf+A2WQHosjA UCjckPsQxliabmDnu7/hIKJ4rJZFFsbz26UrsJg+U+d5CueG0pKe4AhiwGwppJhRo5qf HxAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=W3kjqiYzlYghU6Jg6bC0tyb+ODVTs/+90rrPcFkbVMI=; b=ZK6C1/FNOQQdQRNoSqNoIY+pH6EypWE3vseftDkFoYTH0tC470TZu41nvnjMMwaPfF swFxjSgIQTcUTf4HT9JogiDrc8O4UnBkTMYWqbGzvEqoI/faGbxe8lLOQXnI6+zan0YR D40Sx4kSMup3PAO6ftmbStM3Y8At232g01AYW+7QV0OMos+p7qA8NwWEZ+AMKHdll/FO 5w/fpCNnQB9ujxD+KGdpl0raxV/0WHpb9VrJuf7Ihum+1vAHHLHw6hUu/m5BgSnPXhcn 0rf1j3I5geuTg/6iBEfleEaHo4m+t3sdjAoUL8qktLiTQ9RxPg7AalEYf0dv3o629IB8 nDwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e20si11064751oig.199.2020.01.16.07.14.54; Thu, 16 Jan 2020 07:15:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbgAPPNN (ORCPT + 99 others); Thu, 16 Jan 2020 10:13:13 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:53699 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgAPPNM (ORCPT ); Thu, 16 Jan 2020 10:13:12 -0500 X-Originating-IP: 84.44.14.226 Received: from nexussix.ar.arcelik (unknown [84.44.14.226]) (Authenticated sender: cengiz@kernel.wtf) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 45F97C0006; Thu, 16 Jan 2020 15:13:10 +0000 (UTC) From: Cengiz Can To: prabhakar.csengg@gmail.com Cc: cengiz@kernel.wtf, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org Subject: [PATCH v2] media: davinci: fix incorrect pix_fmt assignment Date: Thu, 16 Jan 2020 18:12:30 +0300 Message-Id: <20200116151229.1002224-1-cengiz@kernel.wtf> X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a mistakenly written self assignment in `static int vpfe_enum_fmt_vid_cap(..)`. Fixed it according to Prabhakar Lad's feedback. Signed-off-by: Cengiz Can --- drivers/media/platform/davinci/vpfe_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c index 916ed743d716..357f7ade5218 100644 --- a/drivers/media/platform/davinci/vpfe_capture.c +++ b/drivers/media/platform/davinci/vpfe_capture.c @@ -879,7 +879,7 @@ static int vpfe_enum_fmt_vid_cap(struct file *file, void *priv, /* Fill in the information about format */ pix_fmt = vpfe_lookup_pix_format(pix); if (pix_fmt) { - fmt->pixelformat = fmt->pixelformat; + fmt->pixelformat = pix_fmt->pixelformat; return 0; } return -EINVAL; -- 2.25.0