From patchwork Thu Apr 11 12:14:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13625849 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17E8BCD1292 for ; Thu, 11 Apr 2024 12:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fVGf8S9xkb6lEE+tyelGpMyVepsk6H7jnvb9WJ6JCBk=; b=MlCZ2EQrrhUU6d 71T/M4AsQsNQUrHQ+zqA6nF64FjvfIIn6zCsUDZiW8MHqeK8FcONcU3YXLjeNV4P40oM+CNGIxqJl jfzal176NUMjyAESv/WbuCzAU//AOliAlKMTTCjn117K/NjW6eE4jkG+LuhS31IjgWB7Bnb+4cF+C Gp0HjZbloZ5xsBaweokuVJ0iQ9/AxG94uyxudJIpEWNRt7jVDtRoqmiv8i/2qVhIoQ9ks9IWvuFqd 4iTRbWNVAeFVWuWv/KOHKiZY8JzXnsSileI7IclSWlbwWBjdQVGAvnd8jPe83VV2hEY9b2QdEDlUb 9vyUpMS3d1QvstM3W5Ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rutJy-0000000Btom-3gq5; Thu, 11 Apr 2024 12:14:26 +0000 Received: from mail-vk1-xa35.google.com ([2607:f8b0:4864:20::a35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rutJh-0000000BtgZ-0x6l for linux-arm-kernel@lists.infradead.org; Thu, 11 Apr 2024 12:14:24 +0000 Received: by mail-vk1-xa35.google.com with SMTP id 71dfb90a1353d-4dac5a3fbeaso1821525e0c.3 for ; Thu, 11 Apr 2024 05:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712837646; x=1713442446; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=1vhafsI5LvdFGZSOAF0fGhLimdJSORh40J/r9x8oZUU=; b=MrFj/dHo3ZWvIvpOtiEuxeecRScLGiXqNgMSyq3MNZXwjx6ydSnUmQ66OSc9V/gSTC qy864/Y/SoeIZcsStNu08XrAw86L9jBeEX+C1iBrigsI+0u65fvjYgAdcUDmETwViaB2 H1ez40KKg5WGb3zHkSqXSaupUNhgq9x3SMHgY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712837646; x=1713442446; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1vhafsI5LvdFGZSOAF0fGhLimdJSORh40J/r9x8oZUU=; b=wdmP2CYl7QLOe3AbyH30ajoP9g/+x1cQxlOmylV3QjBsGjZuTAH6tm0b0xFB1FswQm 3vDftDiLh0PlkNhT85bHs7KdaRKQqO+D5nI8rmy7GuxN+Q7d0t1f3uxZbRZiYUpsWqoh XsQ0ZFeJR23YTDNXNda3Pdnw/oB1QzwKmdXY6XhSp0EdP08MVcLrfcVdTMFV43NfPO4f PFcOELsGAvwOYo+v9fGh9w2e49xxDKY+iGuyzokmYEHjFqvrXqIEuA6RTX4YGe7lVpLg B5Kgdm6NbTlaHMn8d2wUm3eWZxF6viL/OMTmnHqHUsCtXT3W4KJoCne+1eNz/QeFGXbo OXkQ== X-Forwarded-Encrypted: i=1; AJvYcCWNFTOyL4HJOvHFZKiAUP4BE5eQhelo7Kq5vNIrnUXixKyZNrzi07DPm69uNvdOTBgj/5hYZmv6fGZnKKUoR3D9w0DHjy3sSiWvEyIeGE2VFJeDoes= X-Gm-Message-State: AOJu0YziNwRSBWoyT10twdOZ8GKcfvSwyb5kWmAlmfKNJA6IWspESfQ8 shlaueZQUmERt928X22RJrzdJl1276lG8sOB5dqDw+hxIesdnrB6/3iOh5Sj3Q== X-Google-Smtp-Source: AGHT+IGrz19TKSvIV3DMbiUB+Anzc4f3GG8bD5xEZa2OJ57IT5TTkk/P+nBFmtMj28v6ucHX2QJjqQ== X-Received: by 2002:a05:6102:290e:b0:47a:2545:12e with SMTP id cz14-20020a056102290e00b0047a2545012emr4256388vsb.5.1712837645325; Thu, 11 Apr 2024 05:14:05 -0700 (PDT) Received: from denia.c.googlers.com (200.234.86.34.bc.googleusercontent.com. [34.86.234.200]) by smtp.gmail.com with ESMTPSA id l18-20020a0ce092000000b0069b12b5ab57sm855799qvk.89.2024.04.11.05.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 05:14:04 -0700 (PDT) From: Ricardo Ribalda Date: Thu, 11 Apr 2024 12:14:03 +0000 Subject: [PATCH] media: c8sectpfe: Do not depend on DEBUG_FS MIME-Version: 1.0 Message-Id: <20240411-debugfs-v1-1-220c164afaf5@chromium.org> X-B4-Tracking: v=1; b=H4sIAArUF2YC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDE0ND3ZTUpNL0tGLdtBSzZEPjRANzk7QUJaDqgqLUtMwKsEnRsbW1ANs Oln5ZAAAA To: Patrice Chotard , Mauro Carvalho Chehab Cc: Hans Verkuil , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240411_051409_416181_4CC89135 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Make dependency on DEBUG_FS conditional, that way we are not forced to enable DEBUG_FS if we can to use this driver. Signed-off-by: Ricardo Ribalda --- drivers/media/platform/st/sti/c8sectpfe/Kconfig | 1 - drivers/media/platform/st/sti/c8sectpfe/Makefile | 7 +++++-- drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) --- base-commit: 34d7bf1c8e59f5fbf438ee32c96389ebe41ca2e8 change-id: 20240411-debugfs-fd6c13a074fd Best regards, diff --git a/drivers/media/platform/st/sti/c8sectpfe/Kconfig b/drivers/media/platform/st/sti/c8sectpfe/Kconfig index 702b910509c9c..01c33d9c9ec37 100644 --- a/drivers/media/platform/st/sti/c8sectpfe/Kconfig +++ b/drivers/media/platform/st/sti/c8sectpfe/Kconfig @@ -5,7 +5,6 @@ config DVB_C8SECTPFE depends on PINCTRL && DVB_CORE && I2C depends on ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST select FW_LOADER - select DEBUG_FS select DVB_LNBP21 if MEDIA_SUBDRV_AUTOSELECT select DVB_STV090x if MEDIA_SUBDRV_AUTOSELECT select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT diff --git a/drivers/media/platform/st/sti/c8sectpfe/Makefile b/drivers/media/platform/st/sti/c8sectpfe/Makefile index aedfc725cc19d..99425137ee0a9 100644 --- a/drivers/media/platform/st/sti/c8sectpfe/Makefile +++ b/drivers/media/platform/st/sti/c8sectpfe/Makefile @@ -1,6 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 -c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o \ - c8sectpfe-debugfs.o +c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o + +ifneq ($(CONFIG_DEBUG_FS),) +c8sectpfe-y += c8sectpfe-debugfs.o +endif obj-$(CONFIG_DVB_C8SECTPFE) += c8sectpfe.o diff --git a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h index d2c35fb32d7ef..8e1bfd8605247 100644 --- a/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h +++ b/drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h @@ -12,7 +12,12 @@ #include "c8sectpfe-core.h" +#if defined(CONFIG_DEBUG_FS) void c8sectpfe_debugfs_init(struct c8sectpfei *); void c8sectpfe_debugfs_exit(struct c8sectpfei *); +#else +static inline void c8sectpfe_debugfs_init(struct c8sectpfei *) {}; +static inline void c8sectpfe_debugfs_exit(struct c8sectpfei *) {}; +#endif #endif /* __C8SECTPFE_DEBUG_H */