Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2010559ybv; Thu, 6 Feb 2020 14:08:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzemjx8ct3UDfoJxtPL6i9aPxRfAz2OmEMXnzToVDJf0f90J725QZ6QC6RldiYXHeZaXd2h X-Received: by 2002:a54:4006:: with SMTP id x6mr83912oie.145.1581026924716; Thu, 06 Feb 2020 14:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581026924; cv=none; d=google.com; s=arc-20160816; b=tm9gjSKkqllXcc2nUB7ghQ6sR+MNVLIsE7tgA0buGw9ywcozZBejZoNG4FRy6rs9kv w+vflC72f9YjingHjz55mybBYVQee63ccrPM9JYCXCmE+gr/fIe5hMUgbkPA7x5nAHHw A9ftM3WNu1n0VHAI5l7Nn8woH6qfoQRt7iY763uGzgUqyHriLJZrFomlBz8TWIHph1X1 Iy3yGQntnk+xV4qt/jlID2ZiaeMYLOWSOwZMoP9u2UJVEl5nBWnXfWpuVS2oL/yq9yvN d1zBxJy5Im8X0galxmD7cXANufNPDyTEcdkz+DgYjL0kjC6/wbq1UiTzwN9iEUr8jevz anqA== 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=FlOccbbB4zBMJl9RIhNFqbYxihWtBy5xz7F9H2VsLX0=; b=n49BWhGuaO882sBVw4R4T+rp+GLRxeYm3KRYBtsqKT2pI1gUDVNLXhzL/0yNNFEQPT qMFTHsja44WtcQ008KhhJMRJ63HVuXEYXeS818dBK01MTTom8PQLbOhqPp0xE1LdmDMZ oDH5pjw1zBYzhNHf9zm1lSYeyIrwQA5f+ftMy2CzEHkfKkK9i9nC6APSEp2EoxQhP04R JyE77xfRxqJxFbfpClLf/fbtFX0M6YPtMm58TcOcCVQGyVrzWvw1Q4iS+Wh+2Kv0/qIL HxVBbzs4TB0lmYq5Ae5vx1h4r13nxNL9Uo2b5T54ryZ1t5deD1wvprv6LIoCLSsNvR1r /M0Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y22si479581oti.269.2020.02.06.14.08.32; Thu, 06 Feb 2020 14:08:44 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727649AbgBFWH3 (ORCPT + 99 others); Thu, 6 Feb 2020 17:07:29 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45034 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbgBFWH2 (ORCPT ); Thu, 6 Feb 2020 17:07:28 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id 36CFB2946A4 From: Helen Koike To: linux-media@vger.kernel.org Cc: dafna.hirschfeld@collabora.com, hverkuil@xs4all.nl, linux-rockchip@lists.infradead.org, mchehab@kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Helen Koike Subject: [PATCH] media: staging: rkisp1: stats: use consistent bus_info string Date: Thu, 6 Feb 2020 19:07:09 -0300 Message-Id: <20200206220712.1243438-2-helen.koike@collabora.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200206220712.1243438-1-helen.koike@collabora.com> References: <20200206220712.1243438-1-helen.koike@collabora.com> 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 Stats entity is using a slightly different bus_info string "platform: rkisp1" (with a space) instead of "platform:rkisp1" used by the rest of rkisp1 code. This causes errors when using v4l2-util tools that uses the bus_info string to identify the device. Fixes: 9a28dbd65a88 ("media: staging: rkisp1: add capture device for statistics") Signed-off-by: Helen Koike --- drivers/staging/media/rkisp1/rkisp1-stats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/rkisp1/rkisp1-stats.c b/drivers/staging/media/rkisp1/rkisp1-stats.c index d98ea15837de..7f461477497a 100644 --- a/drivers/staging/media/rkisp1/rkisp1-stats.c +++ b/drivers/staging/media/rkisp1/rkisp1-stats.c @@ -70,8 +70,7 @@ static int rkisp1_stats_querycap(struct file *file, strscpy(cap->driver, RKISP1_DRIVER_NAME, sizeof(cap->driver)); strscpy(cap->card, vdev->name, sizeof(cap->card)); - strscpy(cap->bus_info, "platform: " RKISP1_DRIVER_NAME, - sizeof(cap->bus_info)); + strscpy(cap->bus_info, RKISP1_BUS_INFO, sizeof(cap->bus_info)); return 0; } -- 2.24.0