Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3742250pxb; Wed, 13 Oct 2021 12:01:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziZO7YfygFJoT19bXqRuCyh57lhS8Qg5FyT/dnYIHwHDn+iUgyYJ01ISmpg0j/y3+6vWY6 X-Received: by 2002:a17:906:789:: with SMTP id l9mr1168475ejc.61.1634151664657; Wed, 13 Oct 2021 12:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634151664; cv=none; d=google.com; s=arc-20160816; b=fCnB8PjxDHOIek8HK+cijbQ1Bt5pnK3aSU6kr92+XgSELH80yEXHk9sCqmM8IZDaMd bbvwCJId9gfc9jFyKhoJtuX0vPkO03T+BjDwhR80aLa0jLHTh8itFLW1FbLN+juLTVqz aaHAQUGKZ7qQhYj654h9b66mc5vhpDXbv66nvawbP6Bp7vZ4ekTCTAfQHkpuVIXOSaDh iX+naeVQOufJFlOUFOyxqSRAla5H4k+Ccm0HVxOtGpvAhxwbqypHvy3vHQ3pBbCn4C0K oVPPWZNG5vnol+DFFZmg8fQ2ESa6itxdGKyQMBRafAhaKJO+x2gAXop3qrnoe2kdy3kD ha5A== 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=HRNv5HsUecablII83vOpdWuE058u1uL+3OcrxOVUABH0Z4/acZ4daIf/1XoNRepXah o7CnHU1hhMysO55B1LPuBy0eNrAsLpHWcOnDbXLfuvwoqTiEMmV3hLcxzV3HAB6raGSV pu1AXu5RdvWfNv4QWx/erkd9Dh6XuzacJ3+3t4vD8RkGhM2MplWxxO3eyDy15HUWrWlW qB377u3kBLQAV/YbgCJT4G5D9p92Dj4UtDcIwu+Cc/ancBwn5vKHB95iTJEJaElrkASa /4y3pFEe1gZCPMVV0dSI+5TIMMBz1+XeMgeNmTq8uTC+toPC5XpwzrPfdcbN1NfMe6z/ H/kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=bCvMHaz2; 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 di19si509227edb.63.2021.10.13.12.00.21; Wed, 13 Oct 2021 12:01:04 -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=bCvMHaz2; 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 S238889AbhJMTA2 (ORCPT + 99 others); Wed, 13 Oct 2021 15:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238815AbhJMTAZ (ORCPT ); Wed, 13 Oct 2021 15:00:25 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D0EC061749 for ; Wed, 13 Oct 2021 11:58:21 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id y3so11701793wrl.1 for ; Wed, 13 Oct 2021 11:58:21 -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=UWYtJJBsa0LLLZRoFXWiICK8It/s64t7LfobsR7d4kA=; b=bCvMHaz20EHmqCB10I4Hf7zkb2iLPCZU7OWPKg7lLuaxoIWPUGt1EpMFlrSOfFl6Yd CpuI2uWVJG72jTZKfn8QBLf/8DnRNIF0d6ogl9hWOkw7DXWEKWDyveJYqSu8xEheMDZK uSwafuVmIPPJ50hUpva5Jazo/Etn+5uK2kgiMs29L+i8ST93FccgJwFmJyzmm0ib9Rxx 9IxhNovnV+ekTHvnYJg8o+piKS6wFAlYG7mKOr1Xy77WGz9qMqLbOPp+N4l91GgGc82/ s1OvTau10Yq9T+Owyg1pN/51RC8+0RLkwCb+deEXOvNewLCIFRzk5ZmMHtCZsRmCDDbL z9Cg== 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=UWYtJJBsa0LLLZRoFXWiICK8It/s64t7LfobsR7d4kA=; b=aXv3x52EKSyCyoXvADivyswo0/3bCQTUp5V1AKLl2QeuwXq+5XT8dIc+TZdd9ba6HJ QcUh2v8LoMY2xJdGNxzITDf69pafaKHVKy8/e8aUE+iNB8X2b0nRDCL90FiRNz4o1+Am cvaVDDSNqUvrfwKR4YE+L7InbVOlZf/kLF5/aCvWD4cmkptmPY/hIdZHvNiGlcRFhBcd d16YZ7GKyj5msv/oQvqmaiVym4VkZdGdES3YPng4CkdHbrX1ixZob1DIRAtZb5OwZkRf 91JB8N8ppvlh5X9594sMqJFn+Xdh49VoCpjGrUgEEJYC/JLFLJEXeO27nHNt4eIk43Ht 81GA== X-Gm-Message-State: AOAM530/i83XwUv+7cSygOlG5H8Kc/DA+wzCeJeJHsbf40XWXA2pt9r+ BIaUBoQxqNglh1J50O00YB13gg== X-Received: by 2002:a5d:6245:: with SMTP id m5mr1078925wrv.148.1634151500269; Wed, 13 Oct 2021 11:58:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 11:58:20 -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 03/10] staging: media: zoran: rename debug module parameter Date: Wed, 13 Oct 2021 18:58:05 +0000 Message-Id: <20211013185812.590931-4-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 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