dmaengine: pl08x: handle the rest of enums in pl08x_width
authorVinod Koul <vinod.koul@intel.com>
Mon, 25 Jul 2011 13:52:01 +0000 (19:22 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 26 Jul 2011 10:03:29 +0000 (15:33 +0530)
commitf32807f1ff7fbfd2d4ec708b1ac8cb75cb92bfef
tree543d0cacbc1a3e1b146037e5f17d62116f19ac0c
parent760596c6b986e6345a28392cf40ee344bfd209a6
dmaengine: pl08x: handle the rest of enums in pl08x_width

pl08x_width function does not handle rest of enums for DMA_SLAVE_BUSWIDTH_xxxx
which causes gcc to emit below warining

drivers/dma/amba-pl08x.c: In function 'pl08x_width':
drivers/dma/amba-pl08x.c:1119: warning: enumeration value
'DMA_SLAVE_BUSWIDTH_UNDEFINED' not handled in switch
drivers/dma/amba-pl08x.c:1119: warning: enumeration value
'DMA_SLAVE_BUSWIDTH_8_BYTES' not handled in switch

this patch adds a default case which returns error

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c