enc28j60: Correct description of debug module parameter [Linux 5.0]

enc28j60: Correct description of debug module parameter [Linux 5.0]

This Linux kernel change "enc28j60: Correct description of debug module parameter" is included in the Linux 5.0 release. This change is authored by Andy Shevchenko <andriy.shevchenko [at] linux.intel.com> on Wed Feb 27 13:45:35 2019 +0300. The commit for this change in Linux stable tree is 287beb2 (patch).

enc28j60: Correct description of debug module parameter

The netif_msg_init() API takes on input the amount of bits to be set. The
description of debug parameter in the enc28j60 module is misleading in this
sense and passing 0xffff does not give an expected behaviour.

Fix the description of debug module parameter to show what exactly is expected.

Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/ethernet/microchip/enc28j60.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/microchip/enc28j60.c b/drivers/net/ethernet/microchip/enc28j60.c
index f6ecfa7..8f72587 100644
--- a/drivers/net/ethernet/microchip/enc28j60.c
+++ b/drivers/net/ethernet/microchip/enc28j60.c
@@ -1681,5 +1681,5 @@ static void __exit enc28j60_exit(void)
 MODULE_AUTHOR("Claudio Lanconelli <[email protected]>");
 MODULE_LICENSE("GPL");
 module_param_named(debug, debug.msg_enable, int, 0);
-MODULE_PARM_DESC(debug, "Debug verbosity level (0=none, ..., ffff=all)");
+MODULE_PARM_DESC(debug, "Debug verbosity level in amount of bits set (0=none, ..., 31=all)");
 MODULE_ALIAS("spi:" DRV_NAME);

Leave a Reply

Your email address will not be published. Required fields are marked *