Commit e9fd58de64248cfd49b8b0662ece635dba5ae909

Authored by Fabio Estevam
Committed by Vinod Koul
1 parent 58ddff20a6

dma: imx-sdma: Staticize sdma_driver_data structures

Sparse report the following warnings:

drivers/dma/imx-sdma.c:330:25: warning: symbol 'sdma_imx31' was not declared. Should it be static?
drivers/dma/imx-sdma.c:351:25: warning: symbol 'sdma_imx25' was not declared. Should it be static?
drivers/dma/imx-sdma.c:357:25: warning: symbol 'sdma_imx35' was not declared. Should it be static?
drivers/dma/imx-sdma.c:375:25: warning: symbol 'sdma_imx51' was not declared. Should it be static?
drivers/dma/imx-sdma.c:395:25: warning: symbol 'sdma_imx53' was not declared. Should it be static?
drivers/dma/imx-sdma.c:414:25: warning: symbol 'sdma_imx6q' was not declared. Should it be static?

Make the sdma_driver_data structures static.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

drivers/dma/imx-sdma.c
... ... @@ -327,7 +327,7 @@
327 327 const struct sdma_driver_data *drvdata;
328 328 };
329 329  
330   -struct sdma_driver_data sdma_imx31 = {
  330 +static struct sdma_driver_data sdma_imx31 = {
331 331 .chnenbl0 = SDMA_CHNENBL0_IMX31,
332 332 .num_events = 32,
333 333 };
334 334  
... ... @@ -348,13 +348,13 @@
348 348 .shp_2_mcu_addr = 979,
349 349 };
350 350  
351   -struct sdma_driver_data sdma_imx25 = {
  351 +static struct sdma_driver_data sdma_imx25 = {
352 352 .chnenbl0 = SDMA_CHNENBL0_IMX35,
353 353 .num_events = 48,
354 354 .script_addrs = &sdma_script_imx25,
355 355 };
356 356  
357   -struct sdma_driver_data sdma_imx35 = {
  357 +static struct sdma_driver_data sdma_imx35 = {
358 358 .chnenbl0 = SDMA_CHNENBL0_IMX35,
359 359 .num_events = 48,
360 360 };
... ... @@ -372,7 +372,7 @@
372 372 .shp_2_mcu_addr = 892,
373 373 };
374 374  
375   -struct sdma_driver_data sdma_imx51 = {
  375 +static struct sdma_driver_data sdma_imx51 = {
376 376 .chnenbl0 = SDMA_CHNENBL0_IMX35,
377 377 .num_events = 48,
378 378 .script_addrs = &sdma_script_imx51,
... ... @@ -392,7 +392,7 @@
392 392 .mcu_2_firi_addr = 1290,
393 393 };
394 394  
395   -struct sdma_driver_data sdma_imx53 = {
  395 +static struct sdma_driver_data sdma_imx53 = {
396 396 .chnenbl0 = SDMA_CHNENBL0_IMX35,
397 397 .num_events = 48,
398 398 .script_addrs = &sdma_script_imx53,
... ... @@ -411,7 +411,7 @@
411 411 .mcu_2_spdif_addr = 1134,
412 412 };
413 413  
414   -struct sdma_driver_data sdma_imx6q = {
  414 +static struct sdma_driver_data sdma_imx6q = {
415 415 .chnenbl0 = SDMA_CHNENBL0_IMX35,
416 416 .num_events = 48,
417 417 .script_addrs = &sdma_script_imx6q,