]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: ced1401: remove typedef for DMADESC
authorLuca Ellero <luca.ellero@brickedbrain.com>
Thu, 10 Jul 2014 09:01:46 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:08:32 +0000 (15:08 -0700)
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/usb1401.c
drivers/staging/ced1401/usb1401.h

index ee16353719aba8add52d0bb7869f365904614730..9cc79a8090d6b14300a01de60975df8577cfc6b6 100644 (file)
@@ -944,8 +944,9 @@ static bool ced_read_huff(volatile unsigned int *pDWord, char *pBuf,
 **  we start handling the data at offset zero.
 **
 *****************************************************************************/
-static bool ced_read_dma_info(volatile DMADESC *pDmaDesc, DEVICE_EXTENSION *pdx,
-                       char *pBuf, unsigned int dwCount)
+static bool ced_read_dma_info(volatile struct dmadesc *pDmaDesc,
+                             DEVICE_EXTENSION *pdx,
+                             char *pBuf, unsigned int dwCount)
 {
        bool bResult = false;   /*  assume we won't succeed */
        unsigned char ucData;
index 689251dc09597ae8bb53147ffd8f1fd7996a35f6..d269d83c3fc351c7e03403d58d9036cc6ffd199e 100644 (file)
@@ -120,13 +120,13 @@ struct transarea {
 
 /*  The DMADESC structure is used to hold information on the transfer in progress. It */
 /*  is set up by ReadDMAInfo, using information sent by the 1401 in an escape sequence. */
-typedef struct dmadesc {
+struct dmadesc {
        unsigned short wTransType;          /* transfer type as TM_xxx above        */
        unsigned short wIdent;              /* identifier word                      */
        unsigned int   dwSize;              /* bytes to transfer                    */
        unsigned int   dwOffset;            /* offset into transfer area for trans  */
        bool           bOutWard;            /* true when data is going TO 1401      */
-} DMADESC;
+};
 
 #define INBUF_SZ         256            /* input buffer size */
 #define OUTBUF_SZ        256            /* output buffer size */
@@ -157,7 +157,7 @@ typedef struct _DEVICE_EXTENSION {
 
        volatile unsigned int dwDMAFlag;    /* state of DMA */
        struct transarea rTransDef[MAX_TRANSAREAS];  /* transfer area info */
-       volatile DMADESC rDMAInfo;          /*  info on current DMA transfer */
+       volatile struct dmadesc rDMAInfo;   /*  info on current DMA transfer */
        volatile bool bXFerWaiting;         /*  Flag set if DMA transfer stalled */
        volatile bool bInDrawDown;          /*  Flag that we want to halt transfers */