From patchwork Tue May 28 10:25:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13676445 Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90B2016B729 for ; Tue, 28 May 2024 10:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.83 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716892043; cv=none; b=fl/7nuHGCOZO5ypOh3mfNGcgS9MAT/4popjbCgd5Cbg89REXK4kUl4456kKMRpStvEoKAKf2elfsu0oj8/bXdqCPGEJKSaGYTN4Mr4c48nFJHQ4vXbUksJ/ayktldZ1sFZ4hFHME85Airl/uo4MFm0I7fXxCxxSB/ZZbd2u0zMQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716892043; c=relaxed/simple; bh=N9amqOCoV3GG88T8bdtY3NbClGQO4HdYR4FDOKVBIHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AVbhPul02cpnpUiDFy6UGHvt1/Sc5hrQC5R89Z6xVp7lhx/EhdqSOzEFXqlDQ9/k0/6HDykEJo2vVPAEys8dnnD+atf0e4s1zgO6olgCj4S2VS0xdsktbo9VQxlPDY3/Evdm7sofEYCbR03nDWuWrd0s18At21mGj4niPqURyiU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-230.elisa-laajakaista.fi [88.113.26.230]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id dbde0bab-1cdc-11ef-8e2a-005056bdf889; Tue, 28 May 2024 13:27:18 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Guanbing Huang , Guanbing Huang , Christoph Hellwig Subject: [PATCH v2 0/2] PNP: Fix handling of pnp_bus_type Date: Tue, 28 May 2024 13:25:01 +0300 Message-ID: <20240528102708.1451343-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There is a fix for recently introduced dev_is_pnp() that involves pnp_bus_type and one improvement to hide that variable from the wider audience for good. In v2: - reworked patch 1 as suggested by Christoph - added a new patch to make less possibilities for (ab)using pnp_bus_type Andy Shevchenko (2): PNP: Make dev_is_pnp() to be a function and export it for modules PNP: Hide pnp_bus_type from the non-PNP code drivers/pnp/base.h | 1 + drivers/pnp/driver.c | 6 ++++++ include/linux/pnp.h | 6 ++---- 3 files changed, 9 insertions(+), 4 deletions(-)