Add MODULE_DESCRIPTION to various modules in drivers/mtd
Subsystems (2)
PATCH 1/1 Add MODULE_DESCRIPTION to various modules in drivers/mtd
This patch adds missing MODULE_DESCRIPTION to several files in drivers/mtd. This addresses https://bugzilla.kernel.org/show_bug.cgi?id=10770 for the drivers/mtd subsystem.
Terry Chia (1):
Add MODULE_DESCRIPTION to various modules in drivers/mtd
drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/maps/map_funcs.c | 1 + drivers/mtd/nand/denali.c | 1 + 4 files changed, 4 insertions(+)
Signature · 1 line
1.9.3
PATCH 1/1 Add MODULE_DESCRIPTION to various modules in drivers/mtd
This starts to address
https://bugzilla.kernel.org/show_bug.cgi?id=10770
--- drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/maps/map_funcs.c | 1 + drivers/mtd/nand/denali.c | 1 + 4 files changed, 4 insertions(+)
drivers/mtd/chips/cfi_cmdset_0020.c +1 -0
@@ -1398,3 +1398,4 @@ static void cfi_staa_destroy(struct mtd_info *mtd) }MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("MTD chip driver for ST (Advanced Architecture) flash chips" );
drivers/mtd/chips/cfi_util.c +1 -0
@@ -249,3 +249,4 @@ int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,EXPORT_SYMBOL (cfi_varsize_frob);MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("MTD chip driver for generic utility functions" );
drivers/mtd/maps/map_funcs.c +1 -0
@@ -41,3 +41,4 @@ void simple_map_init(struct map_info *map)EXPORT_SYMBOL (simple_map_init);MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("Out-of-line map I/O functions for simple maps" );
drivers/mtd/nand/denali.c +1 -0
@@ -28,6 +28,7 @@#include "denali.h" MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("NAND Flash Controller Device Driver" );/* We define a module parameter that allows the user to override * the hardware and decide what timing mode should be used.
Signature · 1 line
1.9.3
Hi Terry,
I'm not sure the descriptions are all quite right. A few suggestions:
Quoted 16 lines · Terry Chia
This starts to address
https://bugzilla.kernel.org/show_bug.cgi?id=10770Signed-off-by Terry Chia <[email protected]>--- drivers/mtd/chips/cfi_cmdset_0020.c | 1 + drivers/mtd/chips/cfi_util.c | 1 + drivers/mtd/maps/map_funcs.c | 1 + drivers/mtd/nand/denali.c | 1 + 4 files changed, 4 insertions(+)drivers/mtd/chips/cfi_cmdset_0020.c +0
-0
drivers/mtd/chips/cfi_cmdset_0020.c static void cfi_staa_destroy(struct mtd_info *mtd) · line 1401
Quoted 4 lines
drivers/mtd/chips/cfi_cmdset_0020.c +1
-0@@ -1398,3 +1398,4 @@ static void cfi_staa_destroy(struct mtd_info *mtd) }MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("MTD chip driver for ST (Advanced Architecture) flash chips" );
Already a bit long, but can you include "CFI" in there somewhere? I think that's an important bit. Maybe:
"MTD CFI driver for ST flash chips"
drivers/mtd/chips/cfi_util.c int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob, · line 252
Quoted 9 lines
drivers/mtd/chips/cfi_util.c +1
-0@@ -249,3 +249,4 @@ int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,EXPORT_SYMBOL (cfi_varsize_frob);MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("MTD chip driver for generic utility functions" );
It's not exactly a full driver, just a few utility functions. Perhaps:
"MTD CFI utility library"
Quoted 14 lines
drivers/mtd/maps/map_funcs.c +1
-0@@ -41,3 +41,4 @@ void simple_map_init(struct map_info *map)EXPORT_SYMBOL (simple_map_init);MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("Out-of-line map I/O functions for simple maps" );drivers/mtd/nand/denali.c +0
-0
drivers/mtd/nand/denali.c line 31
Quoted 4 lines
drivers/mtd/nand/denali.c +1
-0@@ -28,6 +28,7 @@#include "denali.h" MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("NAND Flash Controller Device Driver" );
You probably want "Denali" in there (although it is in the module name...):
"MTD driver for Denali NAND flash controller"
drivers/mtd/nand/denali.c line 34
Quoted 3 lines
drivers/mtd/nand/denali.c +0
-0/* We define a module parameter that allows the user to override * the hardware and decide what timing mode should be used.
Brian