]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: sc16is7xx: convert bitmask definitions to use BIT() macro
authorLech Perczak <lech.perczak@camlingroup.com>
Mon, 26 Aug 2024 15:42:45 +0000 (17:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 08:47:10 +0000 (10:47 +0200)
commitd2e8590fd1048c5c0dba160edc6a48ee8305a1f0
treefa90c58d7238074b81ad0355f1d20d218c8cd18a
parenteccdb0fd1c340155666533f5c60c5229d370baab
serial: sc16is7xx: convert bitmask definitions to use BIT() macro

Now that bit definition comments were cleaned up, convert bitmask
definitions to use BIT() macro for clarity.
Convert SC16IS7XX_IIR_ID_MASK to use GENMASK() macro -
- while at that, realign comments.
Compose SC16IS7XX_LSR_BRK_ERROR_MASK using aforementioned constants,
instead of open-coding it, and remove now unneeded comments.

Signed-off-by: Lech Perczak <lech.perczak@camlingroup.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/8b45a01e-7cc5-4d53-b467-c6680bc51ef4@camlingroup.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c