Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp216994rdb; Sat, 16 Dec 2023 06:08:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEija+mpNwUEQ6abRp5Gm0qHyXR/hDtyksyXcZGci5B++t/5cQjZDcN88l+JuTQHs2hw2F X-Received: by 2002:a17:90a:b90:b0:28b:48:ffe4 with SMTP id 16-20020a17090a0b9000b0028b0048ffe4mr6118349pjr.36.1702735707279; Sat, 16 Dec 2023 06:08:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702735707; cv=none; d=google.com; s=arc-20160816; b=hY9JsUVG8XL6iJonNjSlH5PZZGuTBk0LRRK5GvhJQ4Bz30lvURLNrrD0elYI2EcbYZ hkosT2FwAqKeEa/ULl50m8RyfJBYJYgzzS0e2cL4PXa4vIWJgobhUPJ0VipET3k4Om89 uTd5SCPs0puMGzap4l7n3H8+9coYFUZ29TKpG9abGWt3o1YNXYyGYwwoOXdQd7armpD1 1N6l6ilRCq7xXdvoxNWNnKYf7YWa1o0bxWL98GwsSgpKpe0Ikg344iURTJ5KQA/ooRJe tzEFTclNUPU34EHAfnDtFo8xFwtAMIAKrpVOzvGB7TK5o8TCTS2NKCX09YTCOcZFshwY KWXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=boz+TP1F4hq71dR77EFZhUrU1ZssTFg6OVTkWtZ1m1I=; fh=IeM4QM/mAfnZO8tKUOycbUtuw8cPE0iNSjJcRGpY/+I=; b=m34Y4aGYPnQcaf2oaGdJZX7UtGZ4JfPHuJSduFXlEXOh6/2o8PCbgfJnaxPnbD0Mkp nUxjYOTRVw6BSg/pQfEw46jx7ZHIp1++btfIC9TOwQ8bJtCH2YDmkFKfM3AK30C38fVb uo4Gs+bHLlREsmWjdWGwa2ay65QYctMYr4eScn4jvl0Knwb8jK8KSrJopNXKjsKvi7IZ FPFAfH3eAqcLhgpfOF/Gsr0cgrEymdIqTGztNfA8bZDZapiBHfP9LfqVKoaXhfudONOx cEIYL/cDmekzLCQXjnlLRKh7TH/eh0ojh8ayPnTCU/SB8vnSNDtberCbZt6fXMSW0JIV 0+Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eMt6dNjo; spf=pass (google.com: domain of linux-kernel+bounces-2216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r15-20020a17090a4dcf00b00286abddfe10si1298832pjl.8.2023.12.16.06.08.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 06:08:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eMt6dNjo; spf=pass (google.com: domain of linux-kernel+bounces-2216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E154B23A45 for ; Sat, 16 Dec 2023 14:08:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EEFB2DB71; Sat, 16 Dec 2023 14:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eMt6dNjo" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A1B82E3E4; Sat, 16 Dec 2023 14:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-40c48d7a7a7so15596335e9.3; Sat, 16 Dec 2023 06:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702735691; x=1703340491; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=boz+TP1F4hq71dR77EFZhUrU1ZssTFg6OVTkWtZ1m1I=; b=eMt6dNjo5MC1r8v+s88Jv3QxjmVSrwkO1H83b+s3KCGZkVC7YpaF77/5GkeCLATqiB bOZuofx2zslFoTuKayCecF0WxvCRZFTi7lngrBIeotaVNAoY3/jXZspZE0ZzDZshQ2+J tLDSh6cvmZXo75+Rj0XIgnR/e+aHbMowNXchZ7OocYp9O5zwYwZ1jz/d8niJzG2naqt0 wrIi80prR+S73elwgmloRFdORRtjMWAMtqLGBpP5WhHdDnM43/Hqf/CVuE2L5RGJEdQ2 BWDsYClYwBijRnA5Vt2K+l7Jl0RvSZjucsnqkfIda56SdQUZuJ4SWIEMRjozy9eCnz22 zqjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702735691; x=1703340491; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=boz+TP1F4hq71dR77EFZhUrU1ZssTFg6OVTkWtZ1m1I=; b=vnCIV8Ni2KFs8m6o6paiQJPWghj/2jDMfEOrjbTzNlS1UOqd7NyWNsOJKn6jONcyh3 zRZIDNgurQ3rLxOa7XFpFjBkFTFFTQyAIkPF1TOlRVtwEaYgFijkh4rGXkaEiyn0iaU/ ZOZJ7ibXHtabZeHqKd5uHt7LbA9orlxrvJ9My6diRQoVgfwjvW3QLqQiLPwtLu2b+U43 /8zZdCQJiXNbkIhN/ASNZgXm4BFNt8ButA7rrsLKNRdlp8t+N1zjb57GmMQdkTLFAw4r W9MDWVaMIXXJUOjlshs41ciKhT+o9Sm2oenzeu+QqCVnYsYB0/9kIT2mPBm9v9EUpWj6 3k0g== X-Gm-Message-State: AOJu0YyHRiTem5/L/nIGmp9V3tCgthrq2jfIvBs/uZGCxr5/Pwi2HT1P g+elci/dWRj4/ToapBJ/lKl24++XJCVBEg== X-Received: by 2002:a05:600c:6028:b0:40b:41c8:f414 with SMTP id az40-20020a05600c602800b0040b41c8f414mr8740011wmb.31.1702735690995; Sat, 16 Dec 2023 06:08:10 -0800 (PST) Received: from fedora.. (cable-178-148-234-71.dynamic.sbb.rs. [178.148.234.71]) by smtp.gmail.com with ESMTPSA id m16-20020a05600c4f5000b0040c57e4ea28sm16923087wmq.17.2023.12.16.06.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 06:08:10 -0800 (PST) From: Aleksa Savic To: linux-hwmon@vger.kernel.org Cc: Aleksa Savic , Jack Doan , Jean Delvare , Guenter Roeck , linux-kernel@vger.kernel.org Subject: [PATCH] hwmon: (aquacomputer_d5next) Remove unneeded CONFIG_DEBUG_FS #ifdef Date: Sat, 16 Dec 2023 15:07:54 +0100 Message-ID: <20231216140754.336775-1-savicaleksa83@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove the #ifdef check for CONFIG_DEBUG_FS and the empty variant of aqc_debugfs_init(), because the debugfs functions already do nothing if debugfs isn't enabled. Signed-off-by: Aleksa Savic --- drivers/hwmon/aquacomputer_d5next.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/hwmon/aquacomputer_d5next.c b/drivers/hwmon/aquacomputer_d5next.c index 4fdd2e12427b..2efe97f8d003 100644 --- a/drivers/hwmon/aquacomputer_d5next.c +++ b/drivers/hwmon/aquacomputer_d5next.c @@ -1476,8 +1476,6 @@ static int aqc_raw_event(struct hid_device *hdev, struct hid_report *report, u8 return 0; } -#ifdef CONFIG_DEBUG_FS - static int serial_number_show(struct seq_file *seqf, void *unused) { struct aqc_data *priv = seqf->private; @@ -1527,14 +1525,6 @@ static void aqc_debugfs_init(struct aqc_data *priv) debugfs_create_file("power_cycles", 0444, priv->debugfs, priv, &power_cycles_fops); } -#else - -static void aqc_debugfs_init(struct aqc_data *priv) -{ -} - -#endif - static int aqc_probe(struct hid_device *hdev, const struct hid_device_id *id) { struct aqc_data *priv; -- 2.43.0