projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8abba0
)
tty_ioctl: Use BIT() for internal flags
author
Ilpo Järvinen
<ilpo.jarvinen@linux.intel.com>
Thu, 9 Mar 2023 08:20:29 +0000
(10:20 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 14:01:08 +0000
(15:01 +0100)
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>
drivers/tty/tty_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_ioctl.c
b/drivers/tty/tty_ioctl.c
index 12983ce4e43efb38f1458ff165d6f7a9d5b81d35..32ff9959b5650d0e2a749d8ce42e7609e8a8f808 100644
(file)
--- 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)
/**