Skip to content

Commit

Permalink
[PATCH] parport: bring back an unused phase for ppdev ioctl
Browse files Browse the repository at this point in the history
Earlier fix removed unused phase, but that changed the values for other
phases.  Since these are exposed to userspace through ppdev, it is safer
not to change them.  Restore the unused phase value.

Signed-off-by: Marko Kohtala <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kohtala authored and Linus Torvalds committed Jan 9, 2006
1 parent d1c4ac4 commit d8a3349
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/linux/parport.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,14 @@ struct pardevice {

/* IEEE1284 information */

/* IEEE1284 phases */
/* IEEE1284 phases. These are exposed to userland through ppdev IOCTL
* PP[GS]ETPHASE, so do not change existing values. */
enum ieee1284_phase {
IEEE1284_PH_FWD_DATA,
IEEE1284_PH_FWD_IDLE,
IEEE1284_PH_TERMINATE,
IEEE1284_PH_NEGOTIATION,
IEEE1284_PH_HBUSY_DNA,
IEEE1284_PH_REV_IDLE,
IEEE1284_PH_HBUSY_DAVAIL,
IEEE1284_PH_REV_DATA,
Expand Down

0 comments on commit d8a3349

Please sign in to comment.