Skip to content

Commit 594069b

Browse files
ppmflossgregkh
authored andcommitted
fs/char_dev.c: fix incorrect documentation for unregister_chrdev_region
The current documentation for unregister_chrdev_region says that it return a range of device numbers which is incorrect. Instead it unregister a range of device numbers. Fix the documentation to make this clear. Signed-off-by: Partha Pratim Mukherjee <ppm.floss@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e7390d7 commit 594069b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/char_dev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ int __register_chrdev(unsigned int major, unsigned int baseminor,
274274
}
275275

276276
/**
277-
* unregister_chrdev_region() - return a range of device numbers
277+
* unregister_chrdev_region() - unregister a range of device numbers
278278
* @from: the first in the range of numbers to unregister
279279
* @count: the number of device numbers to unregister
280280
*

0 commit comments

Comments
 (0)