Skip to content

Commit

Permalink
xtensa: fix TIOCGSERIAL and TIOCSSERIAL definitions
Browse files Browse the repository at this point in the history
Put equivalent constants into TIOCGSERIAL and TIOCSSERIAL definitions:
size subfield of these IOCTL codes is not used and no other architecture
uses _IO* macros here.

The other way could be putting #include <linux/serial.h> into
net/bluetooth/rfcomm/tty.c.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Oct 3, 2012
1 parent 6907b45 commit b973b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/include/asm/ioctls.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
#define TIOCSSOFTCAR _IOW('T', 26, unsigned int)
#define TIOCLINUX _IOW('T', 28, char)
#define TIOCCONS _IO('T', 29)
#define TIOCGSERIAL _IOR('T', 30, struct serial_struct)
#define TIOCSSERIAL _IOW('T', 31, struct serial_struct)
#define TIOCGSERIAL 0x803C541E /*_IOR('T', 30, struct serial_struct)*/
#define TIOCSSERIAL 0x403C541F /*_IOW('T', 31, struct serial_struct)*/
#define TIOCPKT _IOW('T', 32, int)
# define TIOCPKT_DATA 0
# define TIOCPKT_FLUSHREAD 1
Expand Down

0 comments on commit b973b4c

Please sign in to comment.