From: Ilpo Järvinen Date: Thu, 9 Mar 2023 08:20:29 +0000 (+0200) Subject: tty_ioctl: Use BIT() for internal flags X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0b05223bdf6058b96a596609c50a18c7b010224d;p=linux.git tty_ioctl: Use BIT() for internal flags Convert internal flags to use BIT(). Signed-off-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20230309082035.14880-3-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index 12983ce4e43ef..32ff9959b5650 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -7,6 +7,7 @@ * discipline handling modules (like SLIP). */ +#include #include #include #include @@ -40,10 +41,10 @@ /* * Internal flag options for termios setting behavior */ -#define TERMIOS_FLUSH 1 -#define TERMIOS_WAIT 2 -#define TERMIOS_TERMIO 4 -#define TERMIOS_OLD 8 +#define TERMIOS_FLUSH BIT(0) +#define TERMIOS_WAIT BIT(1) +#define TERMIOS_TERMIO BIT(2) +#define TERMIOS_OLD BIT(3) /**