diff options
author | Eugene Syromiatnikov <esyr@redhat.com> | 2019-01-07 10:22:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-08 16:22:56 -0500 |
commit | b7ea4894aa867aaf1c31bfb4b00a3c3e38eedf95 (patch) | |
tree | db5c750ffa9b56828f538a80017eb0f6e448c6c4 | |
parent | 895ac1376d5abcb94ca1b70a595579f253237790 (diff) |
ptp: uapi: change _IOW to IOWR in PTP_SYS_OFFSET_EXTENDED definition
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>
-rw-r--r-- | include/uapi/linux/ptp_clock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/ptp_clock.h b/include/uapi/linux/ptp_clock.h index d73d83950265..1bc794ad957a 100644 --- a/include/uapi/linux/ptp_clock.h +++ b/include/uapi/linux/ptp_clock.h | |||
@@ -147,7 +147,7 @@ struct ptp_pin_desc { | |||
147 | #define PTP_SYS_OFFSET_PRECISE \ | 147 | #define PTP_SYS_OFFSET_PRECISE \ |
148 | _IOWR(PTP_CLK_MAGIC, 8, struct ptp_sys_offset_precise) | 148 | _IOWR(PTP_CLK_MAGIC, 8, struct ptp_sys_offset_precise) |
149 | #define PTP_SYS_OFFSET_EXTENDED \ | 149 | #define PTP_SYS_OFFSET_EXTENDED \ |
150 | _IOW(PTP_CLK_MAGIC, 9, struct ptp_sys_offset_extended) | 150 | _IOWR(PTP_CLK_MAGIC, 9, struct ptp_sys_offset_extended) |
151 | 151 | ||
152 | struct ptp_extts_event { | 152 | struct ptp_extts_event { |
153 | struct ptp_clock_time t; /* Time event occured. */ | 153 | struct ptp_clock_time t; /* Time event occured. */ |