mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
drivers: Replace __MODULE_STRING() with __stringify()
__MODULE_STRING() has been an alias for __stringify() since "[PATCH] MODULE_PARM support for older modules" [1] in 2002-12. That change also moved it to the graveyard section at the end of linux/module.h Replace the remaining uses of __MODULE_STRING() with __stringify() in preparation for its removal. Link: https://git.kernel.org/tglx/history/c/136839a1b4 [1] Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Andi Shyti <andi.shyti@kernel.org> Acked-by: Ian Abbott <abbotti@mev.co.uk> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Mika Westerberg <westeri@kernel.org> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
This commit is contained in:
parent
7a5c13cfdf
commit
08abfa5a16
|
|
@ -29,6 +29,7 @@
|
|||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/compat.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "comedi_internal.h"
|
||||
|
||||
|
|
@ -82,14 +83,14 @@ unsigned int comedi_default_buf_size_kb = CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB;
|
|||
module_param(comedi_default_buf_size_kb, uint, 0644);
|
||||
MODULE_PARM_DESC(comedi_default_buf_size_kb,
|
||||
"default asynchronous buffer size in KiB (default "
|
||||
__MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB) ")");
|
||||
__stringify(CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB) ")");
|
||||
|
||||
unsigned int comedi_default_buf_maxsize_kb =
|
||||
CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB;
|
||||
module_param(comedi_default_buf_maxsize_kb, uint, 0644);
|
||||
MODULE_PARM_DESC(comedi_default_buf_maxsize_kb,
|
||||
"default maximum size of asynchronous buffer in KiB (default "
|
||||
__MODULE_STRING(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB) ")");
|
||||
__stringify(CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB) ")");
|
||||
|
||||
static DEFINE_MUTEX(comedi_board_minor_table_lock);
|
||||
static struct comedi_device
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <linux/console.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <drm/drm_atomic.h>
|
||||
#include <drm/drm_drv.h>
|
||||
|
|
@ -54,7 +55,7 @@ static int drm_fbdev_overalloc = CONFIG_DRM_FBDEV_OVERALLOC;
|
|||
module_param(drm_fbdev_overalloc, int, 0444);
|
||||
MODULE_PARM_DESC(drm_fbdev_overalloc,
|
||||
"Overallocation of the fbdev buffer (%) [default="
|
||||
__MODULE_STRING(CONFIG_DRM_FBDEV_OVERALLOC) "]");
|
||||
__stringify(CONFIG_DRM_FBDEV_OVERALLOC) "]");
|
||||
|
||||
/*
|
||||
* In order to keep user-space compatibility, we want in certain use-cases
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
#include <linux/i2c.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/mfd/kempld.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define KEMPLD_I2C_PRELOW 0x0b
|
||||
#define KEMPLD_I2C_PREHIGH 0x0c
|
||||
|
|
@ -66,7 +67,7 @@ struct kempld_i2c_data {
|
|||
static unsigned int bus_frequency = KEMPLD_I2C_FREQ_STD;
|
||||
module_param(bus_frequency, uint, 0);
|
||||
MODULE_PARM_DESC(bus_frequency, "Set I2C bus frequency in kHz (default="
|
||||
__MODULE_STRING(KEMPLD_I2C_FREQ_STD)")");
|
||||
__stringify(KEMPLD_I2C_FREQ_STD)")");
|
||||
|
||||
static int i2c_bus = -1;
|
||||
module_param(i2c_bus, int, 0);
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "atl1e.h"
|
||||
|
||||
|
|
@ -181,7 +182,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Transmit Ddescription Count",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(ATL1E_DEFAULT_TX_DESC_CNT),
|
||||
__stringify(ATL1E_DEFAULT_TX_DESC_CNT),
|
||||
.def = ATL1E_DEFAULT_TX_DESC_CNT,
|
||||
.arg = { .r = { .min = ATL1E_MIN_TX_DESC_CNT,
|
||||
.max = ATL1E_MAX_TX_DESC_CNT} }
|
||||
|
|
@ -200,7 +201,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Memory size of rx buffer(KB)",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(ATL1E_DEFAULT_RX_MEM_SIZE),
|
||||
__stringify(ATL1E_DEFAULT_RX_MEM_SIZE),
|
||||
.def = ATL1E_DEFAULT_RX_MEM_SIZE,
|
||||
.arg = { .r = { .min = ATL1E_MIN_RX_MEM_SIZE,
|
||||
.max = ATL1E_MAX_RX_MEM_SIZE} }
|
||||
|
|
@ -220,7 +221,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Interrupt Moderate Timer",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(INT_MOD_DEFAULT_CNT),
|
||||
__stringify(INT_MOD_DEFAULT_CNT),
|
||||
.def = INT_MOD_DEFAULT_CNT,
|
||||
.arg = { .r = { .min = INT_MOD_MIN_CNT,
|
||||
.max = INT_MOD_MAX_CNT} }
|
||||
|
|
@ -239,7 +240,7 @@ void atl1e_check_options(struct atl1e_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Speed/Duplex Selection",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(MEDIA_TYPE_AUTO_SENSOR),
|
||||
__stringify(MEDIA_TYPE_AUTO_SENSOR),
|
||||
.def = MEDIA_TYPE_AUTO_SENSOR,
|
||||
.arg = { .r = { .min = MEDIA_TYPE_AUTO_SENSOR,
|
||||
.max = MEDIA_TYPE_10M_HALF} }
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/types.h>
|
||||
|
|
@ -198,7 +199,7 @@ static void atl1_check_options(struct atl1_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Interrupt Moderator Timer",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(DEFAULT_INT_MOD_CNT),
|
||||
__stringify(DEFAULT_INT_MOD_CNT),
|
||||
.def = DEFAULT_INT_MOD_CNT,
|
||||
.arg = {.r = {.min = MIN_INT_MOD_CNT,
|
||||
.max = MAX_INT_MOD_CNT} }
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/tcp.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/types.h>
|
||||
|
|
@ -2921,7 +2922,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)
|
|||
/* Bytes of Transmit Memory */
|
||||
opt.type = range_option;
|
||||
opt.name = "Bytes of Transmit Memory";
|
||||
opt.err = "using default of " __MODULE_STRING(ATL2_DEFAULT_TX_MEMSIZE);
|
||||
opt.err = "using default of " __stringify(ATL2_DEFAULT_TX_MEMSIZE);
|
||||
opt.def = ATL2_DEFAULT_TX_MEMSIZE;
|
||||
opt.arg.r.min = ATL2_MIN_TX_MEMSIZE;
|
||||
opt.arg.r.max = ATL2_MAX_TX_MEMSIZE;
|
||||
|
|
@ -2939,7 +2940,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)
|
|||
/* Receive Memory Block Count */
|
||||
opt.type = range_option;
|
||||
opt.name = "Number of receive memory block";
|
||||
opt.err = "using default of " __MODULE_STRING(ATL2_DEFAULT_RXD_COUNT);
|
||||
opt.err = "using default of " __stringify(ATL2_DEFAULT_RXD_COUNT);
|
||||
opt.def = ATL2_DEFAULT_RXD_COUNT;
|
||||
opt.arg.r.min = ATL2_MIN_RXD_COUNT;
|
||||
opt.arg.r.max = ATL2_MAX_RXD_COUNT;
|
||||
|
|
@ -2960,7 +2961,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)
|
|||
/* Interrupt Moderate Timer */
|
||||
opt.type = range_option;
|
||||
opt.name = "Interrupt Moderate Timer";
|
||||
opt.err = "using default of " __MODULE_STRING(INT_MOD_DEFAULT_CNT);
|
||||
opt.err = "using default of " __stringify(INT_MOD_DEFAULT_CNT);
|
||||
opt.def = INT_MOD_DEFAULT_CNT;
|
||||
opt.arg.r.min = INT_MOD_MIN_CNT;
|
||||
opt.arg.r.max = INT_MOD_MAX_CNT;
|
||||
|
|
@ -2973,7 +2974,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)
|
|||
/* Flash Vendor */
|
||||
opt.type = range_option;
|
||||
opt.name = "SPI Flash Vendor";
|
||||
opt.err = "using default of " __MODULE_STRING(FLASH_VENDOR_DEFAULT);
|
||||
opt.err = "using default of " __stringify(FLASH_VENDOR_DEFAULT);
|
||||
opt.def = FLASH_VENDOR_DEFAULT;
|
||||
opt.arg.r.min = FLASH_VENDOR_MIN;
|
||||
opt.arg.r.max = FLASH_VENDOR_MAX;
|
||||
|
|
@ -2986,7 +2987,7 @@ static void atl2_check_options(struct atl2_adapter *adapter)
|
|||
/* MediaType */
|
||||
opt.type = range_option;
|
||||
opt.name = "Speed/Duplex Selection";
|
||||
opt.err = "using default of " __MODULE_STRING(MEDIA_TYPE_AUTO_SENSOR);
|
||||
opt.err = "using default of " __stringify(MEDIA_TYPE_AUTO_SENSOR);
|
||||
opt.def = MEDIA_TYPE_AUTO_SENSOR;
|
||||
opt.arg.r.min = MEDIA_TYPE_AUTO_SENSOR;
|
||||
opt.arg.r.max = MEDIA_TYPE_10M_HALF;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
/* Copyright(c) 1999 - 2006 Intel Corporation. */
|
||||
|
||||
#include <linux/stringify.h>
|
||||
#include "e1000.h"
|
||||
|
||||
/* This is the only thing that needs to be changed to adjust the
|
||||
|
|
@ -259,7 +260,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Transmit Descriptors",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(E1000_DEFAULT_TXD),
|
||||
__stringify(E1000_DEFAULT_TXD),
|
||||
.def = E1000_DEFAULT_TXD,
|
||||
.arg = { .r = {
|
||||
.min = E1000_MIN_TXD,
|
||||
|
|
@ -287,7 +288,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Receive Descriptors",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(E1000_DEFAULT_RXD),
|
||||
__stringify(E1000_DEFAULT_RXD),
|
||||
.def = E1000_DEFAULT_RXD,
|
||||
.arg = { .r = {
|
||||
.min = E1000_MIN_RXD,
|
||||
|
|
@ -354,7 +355,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
opt = (struct e1000_option) {
|
||||
.type = range_option,
|
||||
.name = "Transmit Interrupt Delay",
|
||||
.err = "using default of " __MODULE_STRING(DEFAULT_TIDV),
|
||||
.err = "using default of " __stringify(DEFAULT_TIDV),
|
||||
.def = DEFAULT_TIDV,
|
||||
.arg = { .r = { .min = MIN_TXDELAY,
|
||||
.max = MAX_TXDELAY }}
|
||||
|
|
@ -372,7 +373,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
opt = (struct e1000_option) {
|
||||
.type = range_option,
|
||||
.name = "Transmit Absolute Interrupt Delay",
|
||||
.err = "using default of " __MODULE_STRING(DEFAULT_TADV),
|
||||
.err = "using default of " __stringify(DEFAULT_TADV),
|
||||
.def = DEFAULT_TADV,
|
||||
.arg = { .r = { .min = MIN_TXABSDELAY,
|
||||
.max = MAX_TXABSDELAY }}
|
||||
|
|
@ -390,7 +391,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
opt = (struct e1000_option) {
|
||||
.type = range_option,
|
||||
.name = "Receive Interrupt Delay",
|
||||
.err = "using default of " __MODULE_STRING(DEFAULT_RDTR),
|
||||
.err = "using default of " __stringify(DEFAULT_RDTR),
|
||||
.def = DEFAULT_RDTR,
|
||||
.arg = { .r = { .min = MIN_RXDELAY,
|
||||
.max = MAX_RXDELAY }}
|
||||
|
|
@ -408,7 +409,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
opt = (struct e1000_option) {
|
||||
.type = range_option,
|
||||
.name = "Receive Absolute Interrupt Delay",
|
||||
.err = "using default of " __MODULE_STRING(DEFAULT_RADV),
|
||||
.err = "using default of " __stringify(DEFAULT_RADV),
|
||||
.def = DEFAULT_RADV,
|
||||
.arg = { .r = { .min = MIN_RXABSDELAY,
|
||||
.max = MAX_RXABSDELAY }}
|
||||
|
|
@ -426,7 +427,7 @@ void e1000_check_options(struct e1000_adapter *adapter)
|
|||
opt = (struct e1000_option) {
|
||||
.type = range_option,
|
||||
.name = "Interrupt Throttling Rate (ints/sec)",
|
||||
.err = "using default of " __MODULE_STRING(DEFAULT_ITR),
|
||||
.err = "using default of " __stringify(DEFAULT_ITR),
|
||||
.def = DEFAULT_ITR,
|
||||
.arg = { .r = { .min = MIN_ITR,
|
||||
.max = MAX_ITR }}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <linux/netdevice.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "e1000.h"
|
||||
|
||||
|
|
@ -238,8 +239,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)
|
|||
static const struct e1000_option opt = {
|
||||
.type = range_option,
|
||||
.name = "Transmit Interrupt Delay",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(DEFAULT_TIDV),
|
||||
.err = "using default of " __stringify(DEFAULT_TIDV),
|
||||
.def = DEFAULT_TIDV,
|
||||
.arg = { .r = { .min = MIN_TXDELAY,
|
||||
.max = MAX_TXDELAY } }
|
||||
|
|
@ -258,8 +258,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)
|
|||
static const struct e1000_option opt = {
|
||||
.type = range_option,
|
||||
.name = "Transmit Absolute Interrupt Delay",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(DEFAULT_TADV),
|
||||
.err = "using default of " __stringify(DEFAULT_TADV),
|
||||
.def = DEFAULT_TADV,
|
||||
.arg = { .r = { .min = MIN_TXABSDELAY,
|
||||
.max = MAX_TXABSDELAY } }
|
||||
|
|
@ -278,8 +277,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)
|
|||
static struct e1000_option opt = {
|
||||
.type = range_option,
|
||||
.name = "Receive Interrupt Delay",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(DEFAULT_RDTR),
|
||||
.err = "using default of " __stringify(DEFAULT_RDTR),
|
||||
.def = DEFAULT_RDTR,
|
||||
.arg = { .r = { .min = MIN_RXDELAY,
|
||||
.max = MAX_RXDELAY } }
|
||||
|
|
@ -301,8 +299,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)
|
|||
static struct e1000_option opt = {
|
||||
.type = range_option,
|
||||
.name = "Receive Absolute Interrupt Delay",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(DEFAULT_RADV),
|
||||
.err = "using default of " __stringify(DEFAULT_RADV),
|
||||
.def = DEFAULT_RADV,
|
||||
.arg = { .r = { .min = MIN_RXABSDELAY,
|
||||
.max = MAX_RXABSDELAY } }
|
||||
|
|
@ -324,8 +321,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)
|
|||
static const struct e1000_option opt = {
|
||||
.type = range_option,
|
||||
.name = "Interrupt Throttling Rate (ints/sec)",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(DEFAULT_ITR),
|
||||
.err = "using default of " __stringify(DEFAULT_ITR),
|
||||
.def = DEFAULT_ITR,
|
||||
.arg = { .r = { .min = MIN_ITR,
|
||||
.max = MAX_ITR } }
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
*/
|
||||
|
||||
#include "pch_gbe.h"
|
||||
#include <linux/module.h> /* for __MODULE_STRING */
|
||||
#include <linux/module.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#define OPTION_UNSET -1
|
||||
#define OPTION_DISABLED 0
|
||||
|
|
@ -440,7 +441,7 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Transmit Descriptors",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(PCH_GBE_DEFAULT_TXD),
|
||||
__stringify(PCH_GBE_DEFAULT_TXD),
|
||||
.def = PCH_GBE_DEFAULT_TXD,
|
||||
.arg = { .r = { .min = PCH_GBE_MIN_TXD,
|
||||
.max = PCH_GBE_MAX_TXD } }
|
||||
|
|
@ -456,7 +457,7 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter)
|
|||
.type = range_option,
|
||||
.name = "Receive Descriptors",
|
||||
.err = "using default of "
|
||||
__MODULE_STRING(PCH_GBE_DEFAULT_RXD),
|
||||
__stringify(PCH_GBE_DEFAULT_RXD),
|
||||
.def = PCH_GBE_DEFAULT_RXD,
|
||||
.arg = { .r = { .min = PCH_GBE_MIN_RXD,
|
||||
.max = PCH_GBE_MAX_RXD } }
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include <linux/device.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/moduleparam.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/units.h>
|
||||
#include <linux/watchdog.h>
|
||||
|
|
@ -25,7 +26,7 @@ MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds");
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
|
||||
__stringify(WATCHDOG_NOWAYOUT) ")");
|
||||
|
||||
static int omnia_wdt_start(struct watchdog_device *wdt)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
#include <linux/workqueue.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/pm.h>
|
||||
#include <linux/stringify.h>
|
||||
#ifdef CONFIG_RTC_DRV_DS1374_WDT
|
||||
#include <linux/fs.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
|
@ -381,7 +382,7 @@ MODULE_PARM_DESC(wdt_margin, "Watchdog timeout in seconds (default 32s)");
|
|||
static bool nowayout = WATCHDOG_NOWAYOUT;
|
||||
module_param(nowayout, bool, 0);
|
||||
MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default ="
|
||||
__MODULE_STRING(WATCHDOG_NOWAYOUT)")");
|
||||
__stringify(WATCHDOG_NOWAYOUT)")");
|
||||
|
||||
static const struct watchdog_info ds1374_wdt_info = {
|
||||
.identity = "DS1374 Watchdog",
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/delay.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/platform_data/x86/apple.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "tb.h"
|
||||
#include "tb_regs.h"
|
||||
|
|
@ -47,7 +48,7 @@ static unsigned int asym_threshold = TB_ASYM_THRESHOLD;
|
|||
module_param_named(asym_threshold, asym_threshold, uint, 0444);
|
||||
MODULE_PARM_DESC(asym_threshold,
|
||||
"threshold (Mb/s) when to Gen 4 switch link symmetry. 0 disables. (default: "
|
||||
__MODULE_STRING(TB_ASYM_THRESHOLD) ")");
|
||||
__stringify(TB_ASYM_THRESHOLD) ")");
|
||||
|
||||
/**
|
||||
* struct tb_cm - Simple Thunderbolt connection manager
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <linux/list.h>
|
||||
#include <linux/ktime.h>
|
||||
#include <linux/string_helpers.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include "tunnel.h"
|
||||
#include "tb.h"
|
||||
|
|
@ -89,12 +90,12 @@ static int dprx_timeout = TB_DPRX_TIMEOUT;
|
|||
module_param(dprx_timeout, int, 0444);
|
||||
MODULE_PARM_DESC(dprx_timeout,
|
||||
"DPRX capability read timeout in ms, -1 waits forever (default: "
|
||||
__MODULE_STRING(TB_DPRX_TIMEOUT) ")");
|
||||
__stringify(TB_DPRX_TIMEOUT) ")");
|
||||
|
||||
static unsigned int dma_credits = TB_DMA_CREDITS;
|
||||
module_param(dma_credits, uint, 0444);
|
||||
MODULE_PARM_DESC(dma_credits, "specify custom credits for DMA tunnels (default: "
|
||||
__MODULE_STRING(TB_DMA_CREDITS) ")");
|
||||
__stringify(TB_DMA_CREDITS) ")");
|
||||
|
||||
static bool bw_alloc_mode = true;
|
||||
module_param(bw_alloc_mode, bool, 0444);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/once.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/stringify.h>
|
||||
|
||||
#include <linux/serial_8250.h>
|
||||
|
||||
|
|
@ -382,6 +383,6 @@ module_param_hw(share_irqs, bool, other, 0644);
|
|||
MODULE_PARM_DESC(share_irqs, "Share IRQs with other non-8250/16x50 devices (unsafe)");
|
||||
|
||||
module_param(nr_uarts, uint, 0644);
|
||||
MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __MODULE_STRING(CONFIG_SERIAL_8250_NR_UARTS) ")");
|
||||
MODULE_PARM_DESC(nr_uarts, "Maximum number of UARTs supported. (1-" __stringify(CONFIG_SERIAL_8250_NR_UARTS) ")");
|
||||
|
||||
MODULE_ALIAS_CHARDEV_MAJOR(TTY_MAJOR);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <linux/moduleparam.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/usb/ch9.h>
|
||||
|
|
@ -77,31 +78,31 @@ static unsigned int num_ModemOption;
|
|||
module_param(altsetting, uint, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(altsetting,
|
||||
"Alternative setting for data interface (bulk_default: "
|
||||
__MODULE_STRING(DEFAULT_BULK_ALTSETTING) "; isoc_default: "
|
||||
__MODULE_STRING(DEFAULT_ISOC_ALTSETTING) ")");
|
||||
__stringify(DEFAULT_BULK_ALTSETTING) "; isoc_default: "
|
||||
__stringify(DEFAULT_ISOC_ALTSETTING) ")");
|
||||
|
||||
module_param(dl_512_first, bool, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(dl_512_first,
|
||||
"Read 512 bytes before sending firmware (default: "
|
||||
__MODULE_STRING(DEFAULT_DL_512_FIRST) ")");
|
||||
__stringify(DEFAULT_DL_512_FIRST) ")");
|
||||
|
||||
module_param(enable_isoc, bool, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(enable_isoc,
|
||||
"Use isochronous transfers if available (default: "
|
||||
__MODULE_STRING(DEFAULT_ENABLE_ISOC) ")");
|
||||
__stringify(DEFAULT_ENABLE_ISOC) ")");
|
||||
|
||||
module_param(sw_buffering, bool, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(sw_buffering,
|
||||
"Enable software buffering (default: "
|
||||
__MODULE_STRING(DEFAULT_SW_BUFFERING) ")");
|
||||
__stringify(DEFAULT_SW_BUFFERING) ")");
|
||||
|
||||
module_param(BMaxDSL, uint, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(BMaxDSL,
|
||||
"default: " __MODULE_STRING(DEFAULT_B_MAX_DSL));
|
||||
"default: " __stringify(DEFAULT_B_MAX_DSL));
|
||||
|
||||
module_param(ModemMode, byte, S_IRUGO | S_IWUSR);
|
||||
MODULE_PARM_DESC(ModemMode,
|
||||
"default: " __MODULE_STRING(DEFAULT_MODEM_MODE));
|
||||
"default: " __stringify(DEFAULT_MODEM_MODE));
|
||||
|
||||
module_param_array(ModemOption, byte, &num_ModemOption, S_IRUGO);
|
||||
MODULE_PARM_DESC(ModemOption, "default: 0x10,0x00,0x00,0x00,0x20");
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@
|
|||
#include <linux/signal.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/stringify.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/wait.h>
|
||||
#include <linux/kthread.h>
|
||||
|
|
@ -103,26 +104,26 @@ static unsigned int snd_buf_bytes = UDSL_DEFAULT_SND_BUF_SIZE;
|
|||
module_param(num_rcv_urbs, uint, S_IRUGO);
|
||||
MODULE_PARM_DESC(num_rcv_urbs,
|
||||
"Number of urbs used for reception (range: 0-"
|
||||
__MODULE_STRING(UDSL_MAX_RCV_URBS) ", default: "
|
||||
__MODULE_STRING(UDSL_DEFAULT_RCV_URBS) ")");
|
||||
__stringify(UDSL_MAX_RCV_URBS) ", default: "
|
||||
__stringify(UDSL_DEFAULT_RCV_URBS) ")");
|
||||
|
||||
module_param(num_snd_urbs, uint, S_IRUGO);
|
||||
MODULE_PARM_DESC(num_snd_urbs,
|
||||
"Number of urbs used for transmission (range: 0-"
|
||||
__MODULE_STRING(UDSL_MAX_SND_URBS) ", default: "
|
||||
__MODULE_STRING(UDSL_DEFAULT_SND_URBS) ")");
|
||||
__stringify(UDSL_MAX_SND_URBS) ", default: "
|
||||
__stringify(UDSL_DEFAULT_SND_URBS) ")");
|
||||
|
||||
module_param(rcv_buf_bytes, uint, S_IRUGO);
|
||||
MODULE_PARM_DESC(rcv_buf_bytes,
|
||||
"Size of the buffers used for reception, in bytes (range: 1-"
|
||||
__MODULE_STRING(UDSL_MAX_BUF_SIZE) ", default: "
|
||||
__MODULE_STRING(UDSL_DEFAULT_RCV_BUF_SIZE) ")");
|
||||
__stringify(UDSL_MAX_BUF_SIZE) ", default: "
|
||||
__stringify(UDSL_DEFAULT_RCV_BUF_SIZE) ")");
|
||||
|
||||
module_param(snd_buf_bytes, uint, S_IRUGO);
|
||||
MODULE_PARM_DESC(snd_buf_bytes,
|
||||
"Size of the buffers used for transmission, in bytes (range: 1-"
|
||||
__MODULE_STRING(UDSL_MAX_BUF_SIZE) ", default: "
|
||||
__MODULE_STRING(UDSL_DEFAULT_SND_BUF_SIZE) ")");
|
||||
__stringify(UDSL_MAX_BUF_SIZE) ", default: "
|
||||
__stringify(UDSL_DEFAULT_SND_BUF_SIZE) ")");
|
||||
|
||||
|
||||
/* receive */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user