File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -283,16 +283,20 @@ static int qdma_check_queue_status(struct qdma_device *qdev,
283
283
284
284
static int qdma_clear_queue_context (const struct qdma_queue * queue )
285
285
{
286
- enum qdma_ctxt_type h2c_types [] = { QDMA_CTXT_DESC_SW_H2C ,
287
- QDMA_CTXT_DESC_HW_H2C ,
288
- QDMA_CTXT_DESC_CR_H2C ,
289
- QDMA_CTXT_PFTCH , };
290
- enum qdma_ctxt_type c2h_types [] = { QDMA_CTXT_DESC_SW_C2H ,
291
- QDMA_CTXT_DESC_HW_C2H ,
292
- QDMA_CTXT_DESC_CR_C2H ,
293
- QDMA_CTXT_PFTCH , };
286
+ static const enum qdma_ctxt_type h2c_types [] = {
287
+ QDMA_CTXT_DESC_SW_H2C ,
288
+ QDMA_CTXT_DESC_HW_H2C ,
289
+ QDMA_CTXT_DESC_CR_H2C ,
290
+ QDMA_CTXT_PFTCH ,
291
+ };
292
+ static const enum qdma_ctxt_type c2h_types [] = {
293
+ QDMA_CTXT_DESC_SW_C2H ,
294
+ QDMA_CTXT_DESC_HW_C2H ,
295
+ QDMA_CTXT_DESC_CR_C2H ,
296
+ QDMA_CTXT_PFTCH ,
297
+ };
294
298
struct qdma_device * qdev = queue -> qdev ;
295
- enum qdma_ctxt_type * type ;
299
+ const enum qdma_ctxt_type * type ;
296
300
int ret , num , i ;
297
301
298
302
if (queue -> dir == DMA_MEM_TO_DEV ) {
You can’t perform that action at this time.
0 commit comments