Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ivan Vecera and committed by
Jakub Kicinski
01e0e8b6 5fb9b0d4

-77
-77
drivers/dpll/zl3073x/core.h
··· 183 183 } 184 184 185 185 /** 186 - * zl3073x_dev_ref_ffo_get - get current fractional frequency offset 187 - * @zldev: pointer to zl3073x device 188 - * @index: input reference index 189 - * 190 - * Return: the latest measured fractional frequency offset 191 - */ 192 - static inline s64 193 - zl3073x_dev_ref_ffo_get(struct zl3073x_dev *zldev, u8 index) 194 - { 195 - const struct zl3073x_ref *ref = zl3073x_ref_state_get(zldev, index); 196 - 197 - return zl3073x_ref_ffo_get(ref); 198 - } 199 - 200 - /** 201 186 * zl3073x_dev_ref_freq_get - get input reference frequency 202 187 * @zldev: pointer to zl3073x device 203 188 * @index: input reference index ··· 212 227 return zl3073x_ref_is_diff(ref); 213 228 } 214 229 215 - /** 216 - * zl3073x_dev_ref_is_enabled - check if the given input reference is enabled 217 - * @zldev: pointer to zl3073x device 218 - * @index: input reference index 219 - * 220 - * Return: true if input refernce is enabled, false otherwise 221 - */ 222 - static inline bool 223 - zl3073x_dev_ref_is_enabled(struct zl3073x_dev *zldev, u8 index) 224 - { 225 - const struct zl3073x_ref *ref = zl3073x_ref_state_get(zldev, index); 226 - 227 - return zl3073x_ref_is_enabled(ref); 228 - } 229 - 230 230 /* 231 231 * zl3073x_dev_ref_is_status_ok - check the given input reference status 232 232 * @zldev: pointer to zl3073x device ··· 228 258 } 229 259 230 260 /** 231 - * zl3073x_dev_synth_dpll_get - get DPLL ID the synth is driven by 232 - * @zldev: pointer to zl3073x device 233 - * @index: synth index 234 - * 235 - * Return: ID of DPLL the given synthetizer is driven by 236 - */ 237 - static inline u8 238 - zl3073x_dev_synth_dpll_get(struct zl3073x_dev *zldev, u8 index) 239 - { 240 - const struct zl3073x_synth *synth; 241 - 242 - synth = zl3073x_synth_state_get(zldev, index); 243 - return zl3073x_synth_dpll_get(synth); 244 - } 245 - 246 - /** 247 261 * zl3073x_dev_synth_freq_get - get synth current freq 248 262 * @zldev: pointer to zl3073x device 249 263 * @index: synth index ··· 241 287 242 288 synth = zl3073x_synth_state_get(zldev, index); 243 289 return zl3073x_synth_freq_get(synth); 244 - } 245 - 246 - /** 247 - * zl3073x_dev_synth_is_enabled - check if the given synth is enabled 248 - * @zldev: pointer to zl3073x device 249 - * @index: synth index 250 - * 251 - * Return: true if synth is enabled, false otherwise 252 - */ 253 - static inline bool 254 - zl3073x_dev_synth_is_enabled(struct zl3073x_dev *zldev, u8 index) 255 - { 256 - const struct zl3073x_synth *synth; 257 - 258 - synth = zl3073x_synth_state_get(zldev, index); 259 - return zl3073x_synth_is_enabled(synth); 260 290 } 261 291 262 292 /** ··· 277 339 synth = zl3073x_synth_state_get(zldev, synth_id); 278 340 279 341 return zl3073x_synth_is_enabled(synth) && zl3073x_out_is_enabled(out); 280 - } 281 - 282 - /** 283 - * zl3073x_dev_out_signal_format_get - get output signal format 284 - * @zldev: pointer to zl3073x device 285 - * @index: output index 286 - * 287 - * Return: signal format of given output 288 - */ 289 - static inline u8 290 - zl3073x_dev_out_signal_format_get(struct zl3073x_dev *zldev, u8 index) 291 - { 292 - const struct zl3073x_out *out = zl3073x_out_state_get(zldev, index); 293 - 294 - return zl3073x_out_signal_format_get(out); 295 342 } 296 343 297 344 /**