diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-12-07 16:12:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-13 10:31:19 +0000 |
commit | 4f7aa122bc9219baca0bfface5917062d6c45ee8 (patch) | |
tree | e4f2b1ecfe14cfb2bd8716f6050bead9da123542 /include/linux/dpll.h | |
parent | 9bab51bd662be4c3ebb18a28879981d69f3ef15a (diff) |
dpll: remove leftover mode_supported() op and use mode_get() instead
Mode supported is currently reported to the user exactly the same, as
the current mode. That's because mode changing is not implemented.
Remove the leftover mode_supported() op and use mode_get() to fill up
the supported mode exposed to user.
One, if even, mode changing is going to be introduced, this could be
very easily taken back. In the meantime, prevent drivers form
implementing this in wrong way (as for example recent netdevsim
implementation attempt intended to do).
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/dpll.h')
-rw-r--r-- | include/linux/dpll.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/dpll.h b/include/linux/dpll.h index 578fc5fa3750..b1a5f9ca8ee5 100644 --- a/include/linux/dpll.h +++ b/include/linux/dpll.h @@ -17,9 +17,6 @@ struct dpll_pin; struct dpll_device_ops { int (*mode_get)(const struct dpll_device *dpll, void *dpll_priv, enum dpll_mode *mode, struct netlink_ext_ack *extack); - bool (*mode_supported)(const struct dpll_device *dpll, void *dpll_priv, - const enum dpll_mode mode, - struct netlink_ext_ack *extack); int (*lock_status_get)(const struct dpll_device *dpll, void *dpll_priv, enum dpll_lock_status *status, struct netlink_ext_ack *extack); |