]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
char: misc: Adapt and add test cases for simple minor space division
authorZijun Hu <zijun.hu@oss.qualcomm.com>
Mon, 14 Jul 2025 15:34:13 +0000 (23:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Aug 2025 10:41:17 +0000 (12:41 +0200)
commitf4e47affdb2edb99834dfd03f5ea8a899bbb98f0
tree740803f1b46fee16b5218bb76aff93d364245d58
parent8ac646d6dfbf8e42bdb31b71e03a7984557ab1b1
char: misc: Adapt and add test cases for simple minor space division

Adapt and add test cases for next change which regards minor whose
value > macro MISC_DYNAMIC_MINOR as invalid parameter when register
miscdevice, hence get a simple minor space division below:

<  MISC_DYNAMIC_MINOR: fixed minor code
== MISC_DYNAMIC_MINOR: indicator to request dynamic minor code
>  MISC_DYNAMIC_MINOR: dynamic minor code requested

Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250714-rfc_miscdev-v6-2-2ed949665bde@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/misc_minor_kunit.c