Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp750433pxb; Fri, 3 Sep 2021 12:34:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/J+BRv+MCPz88s7PnA8/7AaxPgU7X3p4zcPO3mnCRUCV4EzGOPEEnAI1BB0EV8THDED9F X-Received: by 2002:a02:90d0:: with SMTP id c16mr572320jag.106.1630697680214; Fri, 03 Sep 2021 12:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630697680; cv=none; d=google.com; s=arc-20160816; b=ozNzATHFlp6/DtDVD1Y+4rpIz21AH+lB4ElxIv75gpcAjHtwIK17EciTB2BKzVOQ3v j/UOEDs4E57SD+lS+VQpjrnVmWFsDQAHYXDJPEcvEHIQFf7P/DqOhZDQRsXqkmBaw0el L2bCVR3nL3U0rEeodAXI9HiSvHgTRBBbcaM1uhlCFTG1bcFVpPJbVsNgF8/fVRtwCVXV q1zOFcCu/RjsmesUtQUgjLcqa3SnwtLQYelCU+//VPkx4f7rPr6mcpkkeWADw8D2m4tE +cHkMryldUYsvqi87SBe2tvA0Wqk7lfBTQBI5H27U27rQb8oI483dQtAxwF8hHHylodN TUdw== 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=UWYtJJBsa0LLLZRoFXWiICK8It/s64t7LfobsR7d4kA=; b=e93paBdLDSfhlYxolLwbda4kw/vs8u+UK7SY2Z0/4aZYsQK37ExyZwMljLqC/nYvX3 Uqmiyv6WZIkdavEZmUWXk/xE9QUm4oVuT/jGkxkFrB4szFWJ0xNVRNzyZgyRz1BP3A1w 6JviGy/ZM0zz8tir8vD6EdywOrQYZ2qWZqFSSpHqb1e4FOA7vKwl8J+pgCDjIE7+SVVs fDkkzoqNi89R7BiO9w9/jyR5WEE1n8nE8Z/GECAh+glBWYn1/emtXh5ZvVX8dz02T6vV fzMxGo/+kg0LIZC0Jm2ADJoBBowJIwju7f8i+UYkFpd0alpKPj9NTD5qS4ftVD9M1XL9 kkag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=rB986ysc; 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 x6si243619ilu.80.2021.09.03.12.34.28; Fri, 03 Sep 2021 12:34:40 -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.20150623.gappssmtp.com header.s=20150623 header.b=rB986ysc; 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 S1350710AbhICTRN (ORCPT + 99 others); Fri, 3 Sep 2021 15:17:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350643AbhICTQ7 (ORCPT ); Fri, 3 Sep 2021 15:16:59 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 146FCC06179A for ; Fri, 3 Sep 2021 12:15:57 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id x6so96551wrv.13 for ; Fri, 03 Sep 2021 12:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UWYtJJBsa0LLLZRoFXWiICK8It/s64t7LfobsR7d4kA=; b=rB986yscxcriQHyHhrHHPg6S1PvOrT/OtOk7NUbcuALTTlkDK70ocS7L5eUFN+fPYT EdExfceHzEG1Tb5jYm4MfFYrUnySIt067kVl+XDYVkOhqW7g0qr/HhVXDIo8Lk8OkZUK /Kn1vZufyjby6Dw3iG2RGRoCozXKBUXn0lcQrVrIe9TQdULaJNHoTPqfgdZnU1IUmWAj AJM46Vc46LUESLpoIlhr8Kz8zKsiS5KEyrNKk6fnK7RzfjS8+xJFoecDu1KK49mJbdlA 8Uu1Jq5cShTkDS/4lJE4yZR6Ui5Ms2kwm1FAV0eXcXuOIL8wMqAVZWA3hDVKg/aUmCcZ SjLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UWYtJJBsa0LLLZRoFXWiICK8It/s64t7LfobsR7d4kA=; b=NXxVMh7xPZjoAjspaKIzBmyu0b6Wpj5xHAtQHdX5dBSkQD+jYtomuYxUdrN584/psb 75qgWopxXkZ8uESZLWu+B650cgIsVtkB64nBTUix/fEpsl3FO3f2h8ZnJ08YzNH0lFTj gKfM6t3ba9EpCkzou1SCPc9VAmYiWMgPr7VkYohzoyoh+mzCx5YL6IBRb8WrPCFS/w93 OMfmFuGq4ymkCNiHTFckFUdSlHKsxNSWVJ1WGMIkndC8NTVRrqXL0Kq6JDi0xcnNV8NR Km0NkU+sD/lqWc9XWdklSffrxzEN94E5F/QaHAe1gKi19iVnGkrxPV2vkZIdtYVdqkXE 23nw== X-Gm-Message-State: AOAM5339eKjSvlhbM1Ke4R8TZQ9Y5BnA9NsWoj2yObSUCKsG5JQ9xIUk mDml4VzeNGbkUiHe6mjn6CyXUQ== X-Received: by 2002:adf:cd0f:: with SMTP id w15mr618635wrm.346.1630696555673; Fri, 03 Sep 2021 12:15:55 -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 a133sm253397wme.5.2021.09.03.12.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 12:15:55 -0700 (PDT) From: Corentin Labbe To: gregkh@linuxfoundation.org, mchehab@kernel.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 3/8] staging: media: zoran: rename debug module parameter Date: Fri, 3 Sep 2021 19:15:35 +0000 Message-Id: <20210903191540.3052775-4-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210903191540.3052775-1-clabbe@baylibre.com> References: <20210903191540.3052775-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All zoran module will be merged, so to prevent conflict, the debug module parameter need to be renamed Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/videocodec.c | 8 ++++---- drivers/staging/media/zoran/zr36016.c | 12 ++++++------ drivers/staging/media/zoran/zr36050.c | 8 ++++---- drivers/staging/media/zoran/zr36060.c | 9 ++++----- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/drivers/staging/media/zoran/videocodec.c b/drivers/staging/media/zoran/videocodec.c index 28031d3fd757..31019b5f377e 100644 --- a/drivers/staging/media/zoran/videocodec.c +++ b/drivers/staging/media/zoran/videocodec.c @@ -26,13 +26,13 @@ #include "videocodec.h" -static int debug; -module_param(debug, int, 0); -MODULE_PARM_DESC(debug, "Debug level (0-4)"); +static int videocodec_debug; +module_param(videocodec_debug, int, 0); +MODULE_PARM_DESC(videocodec_debug, "Debug level (0-4)"); #define dprintk(num, format, args...) \ do { \ - if (debug >= num) \ + if (videocodec_debug >= num) \ printk(format, ##args); \ } while (0) diff --git a/drivers/staging/media/zoran/zr36016.c b/drivers/staging/media/zoran/zr36016.c index 9b350a885879..50605460a44b 100644 --- a/drivers/staging/media/zoran/zr36016.c +++ b/drivers/staging/media/zoran/zr36016.c @@ -22,14 +22,14 @@ /* amount of chips attached via this driver */ static int zr36016_codecs; -/* debugging is available via module parameter */ -static int debug; -module_param(debug, int, 0); -MODULE_PARM_DESC(debug, "Debug level (0-4)"); +static int zr36016_debug; +module_param(zr36016_debug, int, 0); +MODULE_PARM_DESC(zr36016_debug, "Debug level (0-4)"); + #define dprintk(num, format, args...) \ do { \ - if (debug >= num) \ + if (zr36016_debug >= num) \ printk(format, ##args); \ } while (0) @@ -120,7 +120,7 @@ static u8 zr36016_read_version(struct zr36016 *ptr) static int zr36016_basic_test(struct zr36016 *ptr) { - if (debug) { + if (zr36016_debug) { int i; zr36016_writei(ptr, ZR016I_PAX_LO, 0x55); diff --git a/drivers/staging/media/zoran/zr36050.c b/drivers/staging/media/zoran/zr36050.c index c62af27f2683..4dc7927fefc3 100644 --- a/drivers/staging/media/zoran/zr36050.c +++ b/drivers/staging/media/zoran/zr36050.c @@ -32,13 +32,13 @@ static int zr36050_codecs; /* debugging is available via module parameter */ -static int debug; -module_param(debug, int, 0); -MODULE_PARM_DESC(debug, "Debug level (0-4)"); +static int zr36050_debug; +module_param(zr36050_debug, int, 0); +MODULE_PARM_DESC(zr36050_debug, "Debug level (0-4)"); #define dprintk(num, format, args...) \ do { \ - if (debug >= num) \ + if (zr36050_debug >= num) \ printk(format, ##args); \ } while (0) diff --git a/drivers/staging/media/zoran/zr36060.c b/drivers/staging/media/zoran/zr36060.c index 1c3af11b5f24..7904d5b1f402 100644 --- a/drivers/staging/media/zoran/zr36060.c +++ b/drivers/staging/media/zoran/zr36060.c @@ -34,14 +34,13 @@ static bool low_bitrate; module_param(low_bitrate, bool, 0); MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); -/* debugging is available via module parameter */ -static int debug; -module_param(debug, int, 0); -MODULE_PARM_DESC(debug, "Debug level (0-4)"); +static int zr36060_debug; +module_param(zr36060_debug, int, 0); +MODULE_PARM_DESC(zr36060_debug, "Debug level (0-4)"); #define dprintk(num, format, args...) \ do { \ - if (debug >= num) \ + if (zr36060_debug >= num) \ printk(format, ##args); \ } while (0) -- 2.32.0