summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sprd_serial.c
diff options
context:
space:
mode:
authorHugo Villeneuve <hvilleneuve@dimonoff.com>2023-12-22 00:18:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-04 16:30:05 +0100
commit0c84bea0cabc4e2b98a3de88eeb4ff798931f056 (patch)
tree4f55a063d327843cc1d013ee7db3231c62627d74 /drivers/tty/serial/sprd_serial.c
parentserial: sc16is7xx: reorder code to remove prototype declarations (diff)
downloadlinux-0c84bea0cabc4e2b98a3de88eeb4ff798931f056.tar.xz
linux-0c84bea0cabc4e2b98a3de88eeb4ff798931f056.zip
serial: sc16is7xx: refactor EFR lock
Move common code for EFR lock/unlock of mutex into functions for code reuse and clarity. With the addition of old_lcr, move irda_mode within struct sc16is7xx_one to reduce memory usage: Before: /* size: 752, cachelines: 12, members: 10 */ After: /* size: 744, cachelines: 12, members: 10 */ Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://lore.kernel.org/r/20231221231823.2327894-17-hugo@hugovil.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sprd_serial.c')
0 files changed, 0 insertions, 0 deletions