diff options
| author | Hugo Villeneuve <hvilleneuve@dimonoff.com> | 2025-10-27 17:29:45 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-28 17:25:41 +0300 |
| commit | bc20238ac5189683b5b941dc9276ead9ee86ef43 (patch) | |
| tree | 34537a33a7a0390f5d461de2ed6c7ad5860f46ea /tools/lib/python | |
| parent | d9b2d7ddbb973b981c20b21e9228581bb156f66f (diff) | |
| download | linux-bc20238ac5189683b5b941dc9276ead9ee86ef43.tar.xz | |
serial: sc16is7xx: define common register access function
Rename lock/unlock functions to make it more generic and applicable to both
the Enhanced register set and the Special register set.
Use this new generic function when accessing the Special register set in
sc16is7xx_set_baud(), and when accessing the Enhanced register set in
sc16is7xx_set_termios() and sc16is7xx_probe().
This helps readability and also avoid to make future mistakes when
accessing these obfuscated registers.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-4-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
