Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: uapi: use 0xB4 as ioctl() major

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

Fixes: 3c702e9987e2 ("gpio: add a userspace chardev ABI for GPIOs")
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+3 -2
+1
Documentation/ioctl/ioctl-number.txt
··· 319 319 <mailto:vgo@ratio.de> 320 320 0xB1 00-1F PPPoX <mailto:mostrows@styx.uwaterloo.ca> 321 321 0xB3 00 linux/mmc/ioctl.h 322 + 0xB4 00-0F linux/gpio.h <mailto:linux-gpio@vger.kernel.org> 322 323 0xC0 00-0F linux/usb/iowarrior.h 323 324 0xCA 00-0F uapi/misc/cxl.h 324 325 0xCA 80-8F uapi/scsi/cxlflash_ioctl.h
+2 -2
include/uapi/linux/gpio.h
··· 52 52 char consumer[32]; 53 53 }; 54 54 55 - #define GPIO_GET_CHIPINFO_IOCTL _IOR('o', 0x01, struct gpiochip_info) 56 - #define GPIO_GET_LINEINFO_IOCTL _IOWR('o', 0x02, struct gpioline_info) 55 + #define GPIO_GET_CHIPINFO_IOCTL _IOR(0xB4, 0x01, struct gpiochip_info) 56 + #define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info) 57 57 58 58 #endif /* _UAPI_GPIO_H_ */