diff options
| author | Ivan Vecera <ivecera@redhat.com> | 2025-11-13 10:41:05 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-18 07:23:38 +0300 |
| commit | 01e0e8b6a2d798e7403f4f636b15bcf644a7f110 (patch) | |
| tree | 11941ed7b552e92ca0009c6d84a6e7eb8d1a12dd | |
| parent | 5fb9b0d411f81ec46833ea8e43c0263515060c64 (diff) | |
| download | linux-01e0e8b6a2d798e7403f4f636b15bcf644a7f110.tar.xz | |
dpll: zl3073x: Remove unused dev wrappers
Remove several zl3073x_dev_... inline wrapper functions from core.h
as they are no longer used by any callers.
Removed functions:
* zl3073x_dev_ref_ffo_get
* zl3073x_dev_ref_is_enabled
* zl3073x_dev_synth_dpll_get
* zl3073x_dev_synth_is_enabled
* zl3073x_dev_out_signal_format_get
This is a cleanup after recent refactoring, as the remaining callers
now fetch the state object and use the base helpers directly.
Reviewed-by: Petr Oros <poros@redhat.com>
Tested-by: Prathosh Satish <Prathosh.Satish@microchip.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20251113074105.141379-7-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
| -rw-r--r-- | drivers/dpll/zl3073x/core.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/drivers/dpll/zl3073x/core.h b/drivers/dpll/zl3073x/core.h index fe8b70e25d3c..09bca2d0926d 100644 --- a/drivers/dpll/zl3073x/core.h +++ b/drivers/dpll/zl3073x/core.h @@ -183,21 +183,6 @@ zl3073x_output_pin_out_get(u8 id) } /** - * zl3073x_dev_ref_ffo_get - get current fractional frequency offset - * @zldev: pointer to zl3073x device - * @index: input reference index - * - * Return: the latest measured fractional frequency offset - */ -static inline s64 -zl3073x_dev_ref_ffo_get(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_ref *ref = zl3073x_ref_state_get(zldev, index); - - return zl3073x_ref_ffo_get(ref); -} - -/** * zl3073x_dev_ref_freq_get - get input reference frequency * @zldev: pointer to zl3073x device * @index: input reference index @@ -227,21 +212,6 @@ zl3073x_dev_ref_is_diff(struct zl3073x_dev *zldev, u8 index) return zl3073x_ref_is_diff(ref); } -/** - * zl3073x_dev_ref_is_enabled - check if the given input reference is enabled - * @zldev: pointer to zl3073x device - * @index: input reference index - * - * Return: true if input refernce is enabled, false otherwise - */ -static inline bool -zl3073x_dev_ref_is_enabled(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_ref *ref = zl3073x_ref_state_get(zldev, index); - - return zl3073x_ref_is_enabled(ref); -} - /* * zl3073x_dev_ref_is_status_ok - check the given input reference status * @zldev: pointer to zl3073x device @@ -258,22 +228,6 @@ zl3073x_dev_ref_is_status_ok(struct zl3073x_dev *zldev, u8 index) } /** - * zl3073x_dev_synth_dpll_get - get DPLL ID the synth is driven by - * @zldev: pointer to zl3073x device - * @index: synth index - * - * Return: ID of DPLL the given synthetizer is driven by - */ -static inline u8 -zl3073x_dev_synth_dpll_get(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_synth *synth; - - synth = zl3073x_synth_state_get(zldev, index); - return zl3073x_synth_dpll_get(synth); -} - -/** * zl3073x_dev_synth_freq_get - get synth current freq * @zldev: pointer to zl3073x device * @index: synth index @@ -290,22 +244,6 @@ zl3073x_dev_synth_freq_get(struct zl3073x_dev *zldev, u8 index) } /** - * zl3073x_dev_synth_is_enabled - check if the given synth is enabled - * @zldev: pointer to zl3073x device - * @index: synth index - * - * Return: true if synth is enabled, false otherwise - */ -static inline bool -zl3073x_dev_synth_is_enabled(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_synth *synth; - - synth = zl3073x_synth_state_get(zldev, index); - return zl3073x_synth_is_enabled(synth); -} - -/** * zl3073x_dev_out_synth_get - get synth connected to given output * @zldev: pointer to zl3073x device * @index: output index @@ -342,21 +280,6 @@ zl3073x_dev_out_is_enabled(struct zl3073x_dev *zldev, u8 index) } /** - * zl3073x_dev_out_signal_format_get - get output signal format - * @zldev: pointer to zl3073x device - * @index: output index - * - * Return: signal format of given output - */ -static inline u8 -zl3073x_dev_out_signal_format_get(struct zl3073x_dev *zldev, u8 index) -{ - const struct zl3073x_out *out = zl3073x_out_state_get(zldev, index); - - return zl3073x_out_signal_format_get(out); -} - -/** * zl3073x_dev_out_dpll_get - get DPLL ID the output is driven by * @zldev: pointer to zl3073x device * @index: output index |
