The previous 'o' is in conflict and not very orderly assigned. We want to select an ioctl() major that does not conflict with the existining ones. Add the new reserved major (0xB4) to Documentation/ioctl/ioctl-number.txt
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -52,7 +52,7 @@ struct gpioline_info { · 51 unmodified lines | |||
| 52 | char consumer[32]; | 52 | char consumer[32]; |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | #define GPIO_GET_CHIPINFO_IOCTL _IOR('o', 0x01, struct gpiochip_info) | 55 | #define GPIO_GET_CHIPINFO_IOCTL _IOR(0xB4, 0x01, struct gpiochip_info) |
| 56 | #define GPIO_GET_LINEINFO_IOCTL _IOWR('o', 0x02, struct gpioline_info) | 56 | #define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info) |
| 57 | 57 | ||
| 58 | #endif /* _UAPI_GPIO_H_ */ | 58 | #endif /* _UAPI_GPIO_H_ */ |