ptp: Convert chardev code to lock guards
authorThomas Gleixner <tglx@linutronix.de>
Wed, 25 Jun 2025 11:52:38 +0000 (13:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Jun 2025 00:54:07 +0000 (17:54 -0700)
commit4838bc9e279c566692ee20d241c71626d71240f9
treed93ca8a618ce8e4645503719e680fe13624c206c
parent745e3c751c4d339d9e443398ce45fcbd8972ed0e
ptp: Convert chardev code to lock guards

Convert the various spin_lock_irqsave() protected critical regions to
scoped guards. Use spinlock_irq instead of spinlock_irqsave as all the
functions are invoked in thread context with interrupts enabled.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20250625115133.425029269@linutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_chardev.c