]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ptp: ocp: Refactor signal_show() and fix %ptT misuse
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 24 Nov 2025 08:45:45 +0000 (09:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 03:17:21 +0000 (19:17 -0800)
commit622cc66ed72c2da2294de21da5976a087bcc5748
tree3da99d704700594355f44fc66027c3abdf12a78b
parentb796632fc83c8f9e0d97443f4f389ef9dddadb11
ptp: ocp: Refactor signal_show() and fix %ptT misuse

Refactor signal_show() to avoid sequential calls to sysfs_emit*()
and use the same pattern to get the index of a signal as it's done
in signal_store().

While at it, fix wrong use of %ptT against struct timespec64.
It's kinda lucky that it worked just because the first member
there 64-bit and it's of time64_t type. Now with %ptS it may
be used correctly.

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20251124084816.205035-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c