[patch dpll-rfc 5/7] dpll: export dpll_pin_notify()

Jiri Pirko
2023-03-26T17:01:12Z

From: Jiri Pirko <jiri@nvidia.com>

Export dpll_pin_notify() as it is needed to be called from drivers.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
---
drivers/dpll/dpll_netlink.c | 1 +
drivers/dpll/dpll_netlink.h | 3 ---
include/linux/dpll.h | 4 ++++
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/dpll/dpll_netlink.c b/drivers/dpll/dpll_netlink.c
index 125dc3c7e643..cd77881ee1ec 100644
--- a/drivers/dpll/dpll_netlink.c
+++ b/drivers/dpll/dpll_netlink.c
@@ -1056,6 +1056,7 @@ int dpll_pin_notify(struct dpll_device *dpll, struct dpll_pin *pin,
{
return dpll_send_event_change(dpll, pin, NULL, attr);
}
+EXPORT_SYMBOL_GPL(dpll_pin_notify);

int dpll_pin_parent_notify(struct dpll_device *dpll, struct dpll_pin *pin,
struct dpll_pin *parent, enum dplla attr)
diff --git a/drivers/dpll/dpll_netlink.h b/drivers/dpll/dpll_netlink.h
index 072efa10f0e6..952e0335595e 100644
--- a/drivers/dpll/dpll_netlink.h
+++ b/drivers/dpll/dpll_netlink.h
@@ -20,9 +20,6 @@ int dpll_notify_device_create(struct dpll_device *dpll);
*/
int dpll_notify_device_delete(struct dpll_device *dpll);

-int dpll_pin_notify(struct dpll_device *dpll, struct dpll_pin *pin,
- enum dplla attr);
-
int dpll_pin_parent_notify(struct dpll_device *dpll, struct dpll_pin *pin,
struct dpll_pin *parent, enum dplla attr);

diff --git a/include/linux/dpll.h b/include/linux/dpll.h
index be5717e1da99..562b9b7bd001 100644
--- a/include/linux/dpll.h
+++ b/include/linux/dpll.h
@@ -287,5 +287,9 @@ void dpll_pin_on_pin_unregister(struct dpll_pin *parent, struct dpll_pin *pin,
*/
int dpll_device_notify(struct dpll_device *dpll, enum dplla attr);

+int dpll_pin_notify(struct dpll_device *dpll, struct dpll_pin *pin,
+ enum dplla attr);
+
+

#endif
--
2.39.0