History

[PATCH] parport: bring back an unused phase for ppdev ioctl

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.

Marko Kohtala committed 20 years ago

Commit d8a33491 parent d1c4ac41 file · +3 −1Browse files

Unified · Split

include/linux/parport.h+3−1
@@ -236,12 +236,14 @@ struct pardevice { · 235 unmodified lines
236236
237237 /* IEEE1284 information */
238238
239−/* IEEE1284 phases */
239+/* IEEE1284 phases. These are exposed to userland through ppdev IOCTL
240+ * PP[GS]ETPHASE, so do not change existing values. */
240241 enum ieee1284_phase {
241242 IEEE1284_PH_FWD_DATA,
242243 IEEE1284_PH_FWD_IDLE,
243244 IEEE1284_PH_TERMINATE,
244245 IEEE1284_PH_NEGOTIATION,
246+ IEEE1284_PH_HBUSY_DNA,
245247 IEEE1284_PH_REV_IDLE,
246248 IEEE1284_PH_HBUSY_DAVAIL,
247249 IEEE1284_PH_REV_DATA,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t