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>
This commit is contained in:
Chengguang Xu 2019-02-15 20:27:14 +08:00 committed by Greg Kroah-Hartman
parent 4b0be57260
commit d358b1733f

View file

@ -88,13 +88,10 @@ static int find_dynamic_major(void)
/* /*
* Register a single major with a specified minor range. * Register a single major with a specified minor range.
* *
* If major == 0 this functions will dynamically allocate a major and return * If major == 0 this function will dynamically allocate an unused major.
* its number. * If major > 0 this function will attempt to reserve the range of minors
* with given major.
* *
* If major > 0 this function will attempt to reserve the passed range of
* minors and will return zero on success.
*
* Returns a -ve errno on failure.
*/ */
static struct char_device_struct * static struct char_device_struct *
__register_chrdev_region(unsigned int major, unsigned int baseminor, __register_chrdev_region(unsigned int major, unsigned int baseminor,