From: Chengguang Xu Date: Fri, 15 Feb 2019 12:27:14 +0000 (+0800) Subject: chardev: update comment based on the code X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~4780^2~133 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=d358b1733fc33d9f0261ce07c3d328787652245d;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) /* * Register a single major with a specified minor range. * - * If major == 0 this functions will dynamically allocate a major and return - * its number. - * - * If major > 0 this function will attempt to reserve the passed range of - * minors and will return zero on success. + * If major == 0 this function will dynamically allocate an unused major. + * If major > 0 this function will attempt to reserve the range of minors + * with given major. * - * Returns a -ve errno on failure. */ static struct char_device_struct * __register_chrdev_region(unsigned int major, unsigned int baseminor,