Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3742324pxb; Wed, 13 Oct 2021 12:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl8meIJeZBt3+OHhah/WuppjKudpFOAeGpPzjh5He08JnWfOMzW/3Fp5i/kbu2EpOgbCkq X-Received: by 2002:a17:906:2ccf:: with SMTP id r15mr1166529ejr.182.1634151669411; Wed, 13 Oct 2021 12:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634151669; cv=none; d=google.com; s=arc-20160816; b=ltkAQKRvOV5Z6lHXGHCGbEA6unOWGuciWyNWmKALTlZ5556ipY3f5f+BCzL/qSY4/G 8C5s2WvwM15VnWG8onfhoX/0c/Oiq0gnM2H/T7HOj46bAo1YadJ8SU8nSMzD0R6Jht10 t0QtwMMLhN8u8iyeGhqxA7TRbw7m2ks7kFP2Ci1gx41UuMFel3Sm/chfWaouIG4sWt8G EogkrHJq0OsRiJ2TgVXJk5j/eUoNPbjn+KmgIe0TgvWEwoYfj5ab4NeGB04evb8a13Ja h0tPJytWcdHQeoErthOT1WQi5HdwMrseCwbnCtR3eS0iQgBiYG39xKTJgmlwPLBpzRBe G4OQ== 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=rNu7tGzS3a9nNAG4wYt+tSxCNINIYaiwOvt4CtHF4Gs=; b=zU2lV/qLAiU9IK6BJjRIMpB/NLJOCAR3wttCFg8hk7kDeOy/EZpV+4koJvtVIpBVaR uBoccXJIgOtEAwRzWTq5qWJTJPVv9FrXb/4oc2y57qNmPen3h1Z66AgbPF6/2JLMnJFq kQ1ElFCEFB1k0I78AgRf8nnF3JkLVSxCTl+ctH/aHFkQuPsU3k5Sps6im0uiAJWKdFN+ bpdi7s+KZUvqqu7REy0minVSVPgGHKhzb0Jho6RTvZTcYpRqjQeRXmC+zT8fPPM37oRy e6bD9dYDMgAsKPszIew16DrfkYqG+TysOJUnO8jZgj2ZY0SSkTCmI01qkyLv+S8HaNE4 9NzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bQL8cJwT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df3si385704edb.19.2021.10.13.12.00.42; Wed, 13 Oct 2021 12:01:09 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bQL8cJwT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239022AbhJMTAg (ORCPT + 99 others); Wed, 13 Oct 2021 15:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238835AbhJMTA0 (ORCPT ); Wed, 13 Oct 2021 15:00:26 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63D1C061570 for ; Wed, 13 Oct 2021 11:58:22 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id y3so11701978wrl.1 for ; Wed, 13 Oct 2021 11:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rNu7tGzS3a9nNAG4wYt+tSxCNINIYaiwOvt4CtHF4Gs=; b=bQL8cJwTetQRi7wJWtinf4IweToaAa7IwT8GlJMAwUncH5Ig6a3S5/fp4xd41Ag0qv Ymh15/WjH0C7BdXmn2cAlMyA0a+jT4XF1hr1CScg5ub96GCYFcBQDeYcU87tOPRaFW20 g1Yj67rsoFvIc2u5mN+fJZlnhfd5vD6kjbqww7Dsg10KmOMpfen2qQ0ggEM+06MrgU1n REMzYftS6Em4YqZp+bEkwR5IBTALkD2POfnL1P8yDI6ACPZuxE7AA0Zd3b8uiLygwOVT Vva5EaewNxnAdY8wou1TTimWIA2XYhDqs40KGQtm3BgS4Ce/hcfKaAlNyKAKLnhR/6sV 9VyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rNu7tGzS3a9nNAG4wYt+tSxCNINIYaiwOvt4CtHF4Gs=; b=szzByciPBPzJwntUEj4n2DzPg7ajniKmU5gIXIbsPPWF6EsJVU4cXE4VcinNXiWFmN hwj3LZi6b6O9euY6HysC+kX09tUVs/4u5D8SMrTKCqZ42nOMGigu7IKi/oAvECWJ247h DdfGsGEkrAMCsXYc/xtV8q9pX2aYyk/z48NQnzDRst3SILHGR/qMmqNZBESU6j6vZJ74 XaAQ2SfFra/1faxu4MwrLqA1e0G/BhJ+N6MLvulu/LzgKmrrRyOPixuAcY2g6dPIiqD/ u46I8acICCi34kJH/nmP8ThkT858reX1yxTX99MevDvbPlAgmA8ngj2JzrDxO/Jm+yd7 UdmQ== X-Gm-Message-State: AOAM533lypUEZNi98WLb2z27EpO5B9WjsULMzUdVyxwkgBjKD3E96yFN ZZwJfuGKpDigbYvHa438Bhj2Dg== X-Received: by 2002:adf:bc14:: with SMTP id s20mr1075733wrg.8.1634151501402; Wed, 13 Oct 2021 11:58:21 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id e8sm573059wrg.48.2021.10.13.11.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 11:58:21 -0700 (PDT) From: Corentin Labbe To: mchehab@kernel.org, hverkuil@xs4all.nl, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mjpeg-users@lists.sourceforge.net, Corentin Labbe Subject: [PATCH v2 05/10] staging: media: zoran: videocode: remove procfs Date: Wed, 13 Oct 2021 18:58:07 +0000 Message-Id: <20211013185812.590931-6-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211013185812.590931-1-clabbe@baylibre.com> References: <20211013185812.590931-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now we have a debugfs, we can remove all PROCFS stuff. We keep videocodec_debugfs_show(), it will be used later Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 24 ++---------------------- drivers/staging/media/zoran/videocodec.h | 5 +++++ 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/drivers/staging/media/zoran/videocodec.c b/drivers/staging/media/zoran/videocodec.c index 31019b5f377e..3d5a83a07e07 100644 --- a/drivers/staging/media/zoran/videocodec.c +++ b/drivers/staging/media/zoran/videocodec.c @@ -16,14 +16,6 @@ #include #include -// kernel config is here (procfs flag) - -#ifdef CONFIG_PROC_FS -#include -#include -#include -#endif - #include "videocodec.h" static int videocodec_debug; @@ -265,8 +257,8 @@ int videocodec_unregister(const struct videocodec *codec) } EXPORT_SYMBOL(videocodec_unregister); -#ifdef CONFIG_PROC_FS -static int proc_videocodecs_show(struct seq_file *m, void *v) +#ifdef CONFIG_VIDEO_ZORAN_DEBUG +int videocodec_debugfs_show(struct seq_file *m) { struct codec_list *h = codeclist_top; struct attached_list *a; @@ -300,25 +292,13 @@ static int proc_videocodecs_show(struct seq_file *m, void *v) /* ===================== */ static int __init videocodec_init(void) { -#ifdef CONFIG_PROC_FS - static struct proc_dir_entry *videocodec_proc_entry; -#endif - pr_info("Linux video codec intermediate layer: %s\n", VIDEOCODEC_VERSION); -#ifdef CONFIG_PROC_FS - videocodec_proc_entry = proc_create_single("videocodecs", 0, NULL, proc_videocodecs_show); - if (!videocodec_proc_entry) - pr_err("videocodec: can't init procfs.\n"); -#endif return 0; } static void __exit videocodec_exit(void) { -#ifdef CONFIG_PROC_FS - remove_proc_entry("videocodecs", NULL); -#endif } module_init(videocodec_init); diff --git a/drivers/staging/media/zoran/videocodec.h b/drivers/staging/media/zoran/videocodec.h index 8a5003dda9f4..f2e17566795e 100644 --- a/drivers/staging/media/zoran/videocodec.h +++ b/drivers/staging/media/zoran/videocodec.h @@ -123,6 +123,7 @@ M zr36055[1] 0001 0000c001 00000000 (zr36050[1]) #ifndef __LINUX_VIDEOCODEC_H #define __LINUX_VIDEOCODEC_H +#include #include #define CODEC_DO_COMPRESSION 0 @@ -305,4 +306,8 @@ extern int videocodec_unregister(const struct videocodec *); /* the other calls are directly done via the videocodec structure! */ +#ifdef CONFIG_VIDEO_ZORAN_DEBUG +int videocodec_debugfs_show(struct seq_file *m); +#endif + #endif /*ifndef __LINUX_VIDEOCODEC_H */ -- 2.32.0