summaryrefslogtreecommitdiffstats
path: root/Documentation/serial/serial-rs485.txt
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2016-08-18 10:54:19 +0200
committerJonathan Corbet <corbet@lwn.net>2016-08-18 11:08:33 -0600
commit5021bb933ae299ed494da7350303700077de20fc (patch)
tree57b4c388156e11399e30e1e85c3419f9fbbf36f2 /Documentation/serial/serial-rs485.txt
parent7a9011db32b5a24f29e725220d0ba9e970412f47 (diff)
downloadtalos-obmc-linux-5021bb933ae299ed494da7350303700077de20fc.tar.gz
talos-obmc-linux-5021bb933ae299ed494da7350303700077de20fc.zip
Documentation: rs485: Do not define manually the ioctl
It is not a very good practice to define the IOCTL manually instead of using the header file. Fix it on the documentation example. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/serial/serial-rs485.txt')
-rw-r--r--Documentation/serial/serial-rs485.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/serial/serial-rs485.txt b/Documentation/serial/serial-rs485.txt
index 2253b8b45a74..389fcd4759e9 100644
--- a/Documentation/serial/serial-rs485.txt
+++ b/Documentation/serial/serial-rs485.txt
@@ -45,9 +45,8 @@
#include <linux/serial.h>
- /* RS485 ioctls: */
- #define TIOCGRS485 0x542E
- #define TIOCSRS485 0x542F
+ /* Include definition for RS485 ioctls: TIOCGRS485 and TIOCSRS485 */
+ #include <sys/ioctl.h>
/* Open your specific device (e.g., /dev/mydevice): */
int fd = open ("/dev/mydevice", O_RDWR);
OpenPOWER on IntegriCloud