]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: add phase_offset_avg_factor_get/set callback ops
authorIvan Vecera <ivecera@redhat.com>
Sat, 27 Sep 2025 08:49:11 +0000 (10:49 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Sep 2025 01:57:41 +0000 (18:57 -0700)
commite28d5a68b6519ec6b2118a3f604295b5534eeb51
tree9c58d728b515fdb543d2ecc0e52ce79f7e92f089
parenta680581f6a131fd8c62d284ed4a24d4bc1cc553e
dpll: add phase_offset_avg_factor_get/set callback ops

Add new callback operations for a dpll device:
- phase_offset_avg_factor_get(...) - to obtain current phase offset
  averaging factor from dpll device,
- phase_offset_avg_factor_set(...) - to set phase offset averaging factor

Obtain the factor value using the get callback and provide it to the user
if the device driver implement this callback. Execute the set callback upon
user requests, if the driver implement it.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
v2:
* do not require 'set' callback to retrieve current value
* always call 'set' callback regardless of current value
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250927084912.2343597-3-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/dpll_netlink.c
include/linux/dpll.h