]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ptp: uapi: change _IOW to IOWR in PTP_SYS_OFFSET_EXTENDED definition
authorEugene Syromiatnikov <esyr@redhat.com>
Mon, 7 Jan 2019 15:22:38 +0000 (16:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2019 21:22:56 +0000 (16:22 -0500)
The ioctl command is read/write (or just read, if the fact that user space
writes n_samples field is ignored).

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/ptp_clock.h

index d73d83950265dfb315880e0a252e7ac9c6f8431f..1bc794ad957a72729c352ea6eebf40e96b63dffc 100644 (file)
@@ -147,7 +147,7 @@ struct ptp_pin_desc {
 #define PTP_SYS_OFFSET_PRECISE \
        _IOWR(PTP_CLK_MAGIC, 8, struct ptp_sys_offset_precise)
 #define PTP_SYS_OFFSET_EXTENDED \
-       _IOW(PTP_CLK_MAGIC, 9, struct ptp_sys_offset_extended)
+       _IOWR(PTP_CLK_MAGIC, 9, struct ptp_sys_offset_extended)
 
 struct ptp_extts_event {
        struct ptp_clock_time t; /* Time event occured. */