dpll: remove leftover mode_supported() op and use mode_get() instead
authorJiri Pirko <jiri@nvidia.com>
Thu, 7 Dec 2023 15:12:04 +0000 (16:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 10:31:19 +0000 (10:31 +0000)
commit4f7aa122bc9219baca0bfface5917062d6c45ee8
treee4f2b1ecfe14cfb2bd8716f6050bead9da123542
parent9bab51bd662be4c3ebb18a28879981d69f3ef15a
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>
drivers/dpll/dpll_netlink.c
drivers/net/ethernet/intel/ice/ice_dpll.c
drivers/net/ethernet/mellanox/mlx5/core/dpll.c
drivers/ptp/ptp_ocp.c
include/linux/dpll.h