aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-11-27 23:12:41 -0500
committerBen Hutchings <bhutchings@solarflare.com>2012-11-30 21:37:37 -0500
commitb9cc977d9d4d1866ee83df38815f4b3b34d99dd9 (patch)
treec1416843881ac57005cee5d3cb7b53b47cfc146b /drivers/net/ethernet/sfc
parentebf98e797b4e26ad52ace1511a0b503ee60a6cd4 (diff)
sfc: Make module parameters really boolean
Most of the module parameters treated as boolean are currently exposed as type int or uint. Defining them with the proper type is useful documentation for both users and developers. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r--drivers/net/ethernet/sfc/efx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index 6f073d014ad3..d858f310b2b2 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -106,8 +106,8 @@ static struct workqueue_struct *reset_workqueue;
106 * 106 *
107 * This is only used in MSI-X interrupt mode 107 * This is only used in MSI-X interrupt mode
108 */ 108 */
109static unsigned int separate_tx_channels; 109static bool separate_tx_channels;
110module_param(separate_tx_channels, uint, 0444); 110module_param(separate_tx_channels, bool, 0444);
111MODULE_PARM_DESC(separate_tx_channels, 111MODULE_PARM_DESC(separate_tx_channels,
112 "Use separate channels for TX and RX"); 112 "Use separate channels for TX and RX");
113 113
@@ -160,8 +160,8 @@ static unsigned int rss_cpus;
160module_param(rss_cpus, uint, 0444); 160module_param(rss_cpus, uint, 0444);
161MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling"); 161MODULE_PARM_DESC(rss_cpus, "Number of CPUs to use for Receive-Side Scaling");
162 162
163static int phy_flash_cfg; 163static bool phy_flash_cfg;
164module_param(phy_flash_cfg, int, 0644); 164module_param(phy_flash_cfg, bool, 0644);
165MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially"); 165MODULE_PARM_DESC(phy_flash_cfg, "Set PHYs into reflash mode initially");
166 166
167static unsigned irq_adapt_low_thresh = 8000; 167static unsigned irq_adapt_low_thresh = 8000;