diff options
| author | Théo Lebrun <[email protected]> | 2023-12-07 18:56:06 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-12-15 14:24:12 +0100 |
| commit | 1f78c56007ba61b7b8c3f7dbb6787b6af116d3f0 (patch) | |
| tree | 105b5b54061883da62d35fe66c162ec58c4c1607 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | a5f18286083fe450d6080abc8d4341c630f682dd (diff) | |
tty: serial: amba: Use linux/{bits,bitfield}.h macros
The driver uses bit shifts and hexadecimal expressions to declare
constants. Replace that with the BIT(), GENMASK() & FIELD_PREP_CONST()
macros to clarify intent.
include/linux/amba/serial.h gets included from arch/arm/include/debug/pl01x.S.
Avoid includes and macro tricks for the four defines that are involved:
UART01x_DR, UART01x_FR, UART01x_FR_TXFF and UART01x_FR_BUSY.
Reviewed-by: Linus Walleij <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions