diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-03-09 11:20:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-17 17:01:08 +0300 |
commit | 0b05223bdf6058b96a596609c50a18c7b010224d (patch) | |
tree | 443132fcd85cc283346ca6148f6e3779c0a7695a | |
parent | b8abba0eb1f5b8a05e864cf00f246e1c066775a2 (diff) | |
download | linux-0b05223bdf6058b96a596609c50a18c7b010224d.tar.xz |
tty_ioctl: Use BIT() for internal flags
Convert internal flags to use BIT().
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230309082035.14880-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/tty_ioctl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index 12983ce4e43e..32ff9959b565 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -7,6 +7,7 @@ * discipline handling modules (like SLIP). */ +#include <linux/bits.h> #include <linux/types.h> #include <linux/termios.h> #include <linux/errno.h> @@ -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) /** |