diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2019-02-15 07:27:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-02 11:49:58 -0400 |
commit | d358b1733fc33d9f0261ce07c3d328787652245d (patch) | |
tree | 90048cebe3005a478cba3392470bc26a1f6e0979 /fs/char_dev.c | |
parent | 4b0be572603233b4240f6072f0bd35542d311ed8 (diff) |
chardev: update comment based on the code
The function comment of __register_chrdev_region()
is out of date, so update it based on the code.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r-- | fs/char_dev.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c index bd2bf1fd847e..d18cad28c1c3 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c | |||
@@ -88,13 +88,10 @@ static int find_dynamic_major(void) | |||
88 | /* | 88 | /* |
89 | * Register a single major with a specified minor range. | 89 | * Register a single major with a specified minor range. |
90 | * | 90 | * |
91 | * If major == 0 this functions will dynamically allocate a major and return | 91 | * If major == 0 this function will dynamically allocate an unused major. |
92 | * its number. | 92 | * If major > 0 this function will attempt to reserve the range of minors |
93 | * | 93 | * with given major. |
94 | * If major > 0 this function will attempt to reserve the passed range of | ||
95 | * minors and will return zero on success. | ||
96 | * | 94 | * |
97 | * Returns a -ve errno on failure. | ||
98 | */ | 95 | */ |
99 | static struct char_device_struct * | 96 | static struct char_device_struct * |
100 | __register_chrdev_region(unsigned int major, unsigned int baseminor, | 97 | __register_chrdev_region(unsigned int major, unsigned int baseminor, |