Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3603389rdb; Wed, 13 Sep 2023 18:12:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGmZKnPW6MdETqhMBt3gd1fovFp5QAynH8oUBAG+R/Joqnzpkl7gtNJ8U/JErcXj+N4uAo X-Received: by 2002:a05:6358:5715:b0:142:d40a:82a9 with SMTP id a21-20020a056358571500b00142d40a82a9mr4458482rwf.2.1694653932403; Wed, 13 Sep 2023 18:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694653928; cv=none; d=google.com; s=arc-20160816; b=yw5IWKec6qrACf7qJuTl8LygUm8GuC3Cg0NmCZ++ZVX00vICk5GOpdznFpfHL0cQP6 VWgtmtiVj2+hOo09DsApPnh93VgXn2YdlZ7BSgbSi90ogkn/r3QXqrGx66uuZ8bqbGKR K7+sTTNRkydCUixhAy/IgSkm494Hy1snsNZ1j09hLczNeJil6xl+g5wZfEw3WGH6WPkV 6JJXt1AicOXS8rN7F/1FWdCAzNTzmpa/7f3qgvVJ7vr+dQxOWp3KemafKx3Tvzs8BD9r kDciMvaWsyMNhlwlOTXSB3DGiRGwJ/6r1hRds+3Sj+HeyIfRCzOUApvjK2fXXzF15ZRz 2IGA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yXHrfcqdA6hJUqO/bOQ9IndUnykXTimsHuOhWBIHzh8=; fh=uqSi0rTMfqRL1+1lGIObDDMoj0IKAsqar7mmcDA8zws=; b=gMYCGcLT9a3zl/ZLwy9hQ99lS1By1hpjmU1bYoun5/+G81+0UaG0c0ERadxGCtCU7K vKnnq08eRcsQZd6uks9XfZsO03nE4lZW1Gud3TFyMN3E1lAbAwGAwlHJvgeZwwfmzKY4 V8eLadr6pR3iYm4gmg6HW6Q3+1YRInQw2WaKGicRqT7XsDW9c/kY/Cv6/b9/tDcYTcBh nTHwgYVpY1IsOik07Ur1gH6RVA9LOxGJVK7TJCrf9QG2K1oDOMxovzxXxnJ6JTP+32wM l047DsMFjNCmYj9AAb6tNlZpKYkUu3TTCj0COCnlAzZjQNRXU9x8t1W6Sz7ZBSB+n1/N 5BdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XPMyMscc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k186-20020a6384c3000000b005776040b2a6si385154pgd.187.2023.09.13.18.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 18:12:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XPMyMscc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 310DA81E14D7; Wed, 13 Sep 2023 06:39:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240985AbjIMNjP (ORCPT + 99 others); Wed, 13 Sep 2023 09:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjIMNjO (ORCPT ); Wed, 13 Sep 2023 09:39:14 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7305619BB; Wed, 13 Sep 2023 06:39:10 -0700 (PDT) Received: from mercury (dyndsl-091-248-208-175.ewe-ip-backbone.de [91.248.208.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id DEF8E6607334; Wed, 13 Sep 2023 14:39:08 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694612349; bh=g/6AAX2qsSOtUeY2OFLzRXe7QB5YC9OFRSj/utRayGI=; h=From:To:Cc:Subject:Date:From; b=XPMyMsccAR+nlUXWhdIjmHQhl9vIdbLJ9zdmgIcG7HQihkpESbc6RHBoij/o2mOKi 2S93o2X0NkIFSXB+bfhJ3pqVLqWkkgOgwHVegv+/rXPfbhYe6TikwCRsqvtL99mG0K 10Hd1v/x/mpdPPmvIeqYIy5Dw0n3yET1IsKszSuBPY57QEjJjRmW+SXfa4Jy74KhTZ Bqmrc23Xe3n+NclRb5P6/LgABRikA3C8syhVoprhCfgt0+HrabceGk9d62/E8vsCVZ X5ysH4SjoFZ36ybeMAHWBkJDQgT/hwwRpzUjiVRqcyREaTFOxJhVokkI8JKIr9OKhr vVnExyntMqFyg== Received: by mercury (Postfix, from userid 1000) id 227EE106098B; Wed, 13 Sep 2023 15:39:03 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel Subject: [PATCH] power: supply: core: Don't export power_supply_notifier Date: Wed, 13 Sep 2023 15:39:00 +0200 Message-Id: <20230913133900.591637-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 06:39:16 -0700 (PDT) power_supply_notifier can be internal, since all users are going through power_supply_reg_notifier()/power_supply_unreg_notifier(). Signed-off-by: Sebastian Reichel --- drivers/power/supply/power_supply_core.c | 3 +-- include/linux/power_supply.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 416409e2fd6d..96941a0eee03 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c @@ -29,8 +29,7 @@ struct class *power_supply_class; EXPORT_SYMBOL_GPL(power_supply_class); -BLOCKING_NOTIFIER_HEAD(power_supply_notifier); -EXPORT_SYMBOL_GPL(power_supply_notifier); +static BLOCKING_NOTIFIER_HEAD(power_supply_notifier); static struct device_type power_supply_dev_type; diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 85b86768c0b9..c0992a77feea 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -767,7 +767,6 @@ struct power_supply_battery_info { int bti_resistance_tolerance; }; -extern struct blocking_notifier_head power_supply_notifier; extern int power_supply_reg_notifier(struct notifier_block *nb); extern void power_supply_unreg_notifier(struct notifier_block *nb); #if IS_ENABLED(CONFIG_POWER_SUPPLY) -- 2.40.1