Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp274466pxb; Wed, 27 Oct 2021 02:50:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyfeBSeeB2fSrcugZiiBuBXDnrW/OAF5rsoI/4FGEurdXl0Z9k+LNu2QOHFUZde7CFUbXx X-Received: by 2002:a17:90b:388c:: with SMTP id mu12mr4756730pjb.146.1635328237561; Wed, 27 Oct 2021 02:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635328237; cv=none; d=google.com; s=arc-20160816; b=a6RZQwZK34g4HDsUR0JgEQblIGo2oBLkdGMqYUv85zC+BTyryev0XnrintBzPswzKz pD31E+VcNgwPmV/msXBEvGIDSbxcrvOQrb3qYXKXInRsNhfiJEwjMorBELY3GPhyAHPe 9p8gH97Yn23CTxlLiVEag6KvRVA6ER7TrerwHyMNUs+asLouyoc0YFqykG0UHSJxBe0c AdFBtFo3+bgK7ugJQabD0AbqcGWd0+Kj0+HIx4PYjY/UX4dWoBF8QTHXYoWOhOuj3dcl KOxok11jzNb+5y6eYUESjL1XoHwmJwaHyskBxxrl7r9Reweo8NEoZFVSJ65rRf6gqKJi FvlQ== 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=9d00CQxtuLbmKfZQEqLshscWS8poY4p1Q3lozDp6W9U=; b=FVV2E4rJw6kaivQVAX6itNuKx7xKZxfvP5GOb2vQNTLxN7drSx25aGq1Sf0tjbfd1g pUk9uDdvlrc17/TRt9t4wV3SO9qeCg2kTPHcQfxDlBZ9JSeF19bnTx2e+DwRKb0IqNxy kgNEqHKtDZmJdW3B87rEpX2c/k2gO7qxFl3gW+exe4oEgXl/CF2BXN4+Lp3m8qciptx1 d/gAVH1oOH8y3+57/jNMVkJmOqrVngsM2EfZoHK8P8phaGoVBCNDG/VzC+sdU7+4io17 IhnyP1XV/YqWy8o3W58iVFOwzXVieOYCmAhOgKODjeb5DjngCy2xkdBAog0a7WPwIErI +VQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=fwv8aNrA; 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 o13si14552498pgu.156.2021.10.27.02.49.49; Wed, 27 Oct 2021 02:50:37 -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=fwv8aNrA; 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 S238931AbhJZThS (ORCPT + 99 others); Tue, 26 Oct 2021 15:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238833AbhJZTgu (ORCPT ); Tue, 26 Oct 2021 15:36:50 -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 DE650C061225 for ; Tue, 26 Oct 2021 12:34:25 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id e4so129299wrc.7 for ; Tue, 26 Oct 2021 12:34:25 -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=9d00CQxtuLbmKfZQEqLshscWS8poY4p1Q3lozDp6W9U=; b=fwv8aNrAyxe5i4jWD2gyV34JjH6qiFTlYo6cq78FdY5nK0+ENvJK3+FNm3tUg5CsyU 9lRgtpXzBBrJzHYLNcXPmluXFkl+l3x85YlyGCgnhKep5poYJyLtvi7RGq87oCdU5MHZ b1y2c/v7XQspwenObvtlvlViThjGrHj1SzK7TUvMyT7KyNVXvAkMwbJQ6UuzbiV3HpB9 sz6jcP7JedYXu/ZLeMsp1HBmLEVDzsJGBhdoB/HqXci500wXC4CrAN67PUGqz37dsNxs YEIaopFIw8AYIFKV0TJgwflH0js0FyNztAazfKYD6QOJlOjR8XW8IxTNXEd7cXT+wY05 ZxDA== 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=9d00CQxtuLbmKfZQEqLshscWS8poY4p1Q3lozDp6W9U=; b=OIlyBvwRlhgPibKpbFXNEINa2tNK/qpujib3W20YZZ15bwm46KtX/YSELYVK7oBazD DZy17R5FaUONBh6vsG+OxjIcHNqPnwxbp0ijx5mqezdy1+3SpM+IIo8y+FRldAn4xPGh PJbd3SwZUutysfEG9n3Y+jMzjhLcq31hjIXYn0wJfCSGtUQbFYKg1p7WO73DsPBU0Rnm x1mlRwuZKdpwTyga0TWwuVdBG4pY6eWQSVGYNJHG1yDWXZEoiz9BAh578CIJbi5YDTbP Zp5w06Tyx0yyWhMt0DazBT1Uw8MGS13mNXun5oaaUWuqQEs2Z9XyN+7T/0OyJYdj84Mc iufg== X-Gm-Message-State: AOAM533ioJXE9s1pXgmNj7BhE3u4gIGUroPqvvJQhh7zjduvQkf1Hleu vtImG56KCHRbV+1DiWS5ec+CBA== X-Received: by 2002:adf:f38a:: with SMTP id m10mr10727726wro.126.1635276864545; Tue, 26 Oct 2021 12:34:24 -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 s18sm17676123wrb.95.2021.10.26.12.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 12:34:24 -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 v3 05/14] staging: media: zoran: videocode: remove procfs Date: Tue, 26 Oct 2021 19:34:07 +0000 Message-Id: <20211026193416.1176797-6-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211026193416.1176797-1-clabbe@baylibre.com> References: <20211026193416.1176797-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 | 3 +++ 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/drivers/staging/media/zoran/videocodec.c b/drivers/staging/media/zoran/videocodec.c index 31019b5f377e..5bab7ba56257 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,7 @@ 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) +int videocodec_debugfs_show(struct seq_file *m) { struct codec_list *h = codeclist_top; struct attached_list *a; @@ -293,32 +284,19 @@ static int proc_videocodecs_show(struct seq_file *m, void *v) return 0; } -#endif /* ===================== */ /* hook in driver module */ /* ===================== */ 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..3a508d326049 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,6 @@ extern int videocodec_unregister(const struct videocodec *); /* the other calls are directly done via the videocodec structure! */ +int videocodec_debugfs_show(struct seq_file *m); + #endif /*ifndef __LINUX_VIDEOCODEC_H */ -- 2.32.0