lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181210151024.3906-2-brgl@bgdev.pl>
Date:   Mon, 10 Dec 2018 16:10:23 +0100
From:   Bartosz Golaszewski <brgl@...ev.pl>
To:     Liam Girdwood <lgirdwood@...il.com>,
        Mark Brown <broonie@...nel.org>
Cc:     linux-kernel@...r.kernel.org,
        Bartosz Golaszewski <bgolaszewski@...libre.com>
Subject: [PATCH 1/2] regulator: make _regulator_is_enabled() available in internal.h

From: Bartosz Golaszewski <bgolaszewski@...libre.com>

We want to use _regulator_is_enabled() in helpers.c. Export it locally
in internal.h.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@...libre.com>
---
 drivers/regulator/core.c     | 3 +--
 drivers/regulator/internal.h | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 2c66b528aede..3754711530b2 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -96,7 +96,6 @@ struct regulator_supply_alias {
 	const char *alias_supply;
 };
 
-static int _regulator_is_enabled(struct regulator_dev *rdev);
 static int _regulator_disable(struct regulator_dev *rdev);
 static int _regulator_get_voltage(struct regulator_dev *rdev);
 static int _regulator_get_current_limit(struct regulator_dev *rdev);
@@ -2531,7 +2530,7 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
 }
 EXPORT_SYMBOL_GPL(regulator_disable_deferred);
 
-static int _regulator_is_enabled(struct regulator_dev *rdev)
+int _regulator_is_enabled(struct regulator_dev *rdev)
 {
 	/* A GPIO control always takes precedence */
 	if (rdev->ena_pin)
diff --git a/drivers/regulator/internal.h b/drivers/regulator/internal.h
index 943926a156f2..a8557ed96ae6 100644
--- a/drivers/regulator/internal.h
+++ b/drivers/regulator/internal.h
@@ -113,4 +113,5 @@ enum regulator_get_type {
 
 struct regulator *_regulator_get(struct device *dev, const char *id,
 				 enum regulator_get_type get_type);
+int _regulator_is_enabled(struct regulator_dev *rdev);
 #endif
-- 
2.19.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ