Skip to content

Commit

Permalink
ptp: uapi: change _IOW to IOWR in PTP_SYS_OFFSET_EXTENDED definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eugene Syromiatnikov authored and David S. Miller committed Jan 8, 2019
1 parent 895ac13 commit b7ea489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/linux/ptp_clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit b7ea489

Please sign in to comment.