Skip to content

Commit a85159f

Browse files
lyakhVinod Koul
authored andcommitted
DMA: dmatest: extend the "device" module parameter to 32 characters
With Device Tree a typical DMA controller device name can look like 10000000.dma-controller, which extends the current size of the string, allocated for this parameter. This patch extends its size from 20 to 32 characters. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent f3b7772 commit a85159f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/dma/dmatest.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module_param_string(channel, test_channel, sizeof(test_channel),
3131
S_IRUGO | S_IWUSR);
3232
MODULE_PARM_DESC(channel, "Bus ID of the channel to test (default: any)");
3333

34-
static char test_device[20];
34+
static char test_device[32];
3535
module_param_string(device, test_device, sizeof(test_device),
3636
S_IRUGO | S_IWUSR);
3737
MODULE_PARM_DESC(device, "Bus ID of the DMA Engine to test (default: any)");
@@ -89,7 +89,7 @@ MODULE_PARM_DESC(verbose, "Enable \"success\" result messages (default: off)");
8989
struct dmatest_params {
9090
unsigned int buf_size;
9191
char channel[20];
92-
char device[20];
92+
char device[32];
9393
unsigned int threads_per_chan;
9494
unsigned int max_channels;
9595
unsigned int iterations;

0 commit comments

Comments
 (0)