fpga: dfl: more kernel-doc corrections
authorXu Yilun <yilun.xu@intel.com>
Sat, 14 Jan 2023 15:54:44 +0000 (23:54 +0800)
committerXu Yilun <yilun.xu@intel.com>
Sat, 28 Jan 2023 15:33:43 +0000 (23:33 +0800)
Fix more kernel-doc warnings in drivers/fpga/:

$ ./scripts/kernel-doc -none drivers/fpga/*
drivers/fpga/dfl-afu.h:61: warning: expecting prototype for struct fpga_afu_dma_region. Prototype was for struct dfl_afu_dma_region instead
drivers/fpga/dfl-afu-region.c:52: warning: Function parameter or member 'pdata' not described in 'afu_mmio_region_add'
drivers/fpga/dfl-fme-perf.c:161: warning: Function parameter or member 'node' not described in 'fme_perf_priv'
drivers/fpga/dfl-fme-pr.h:70: warning: expecting prototype for struct dfl_fme_bridge_pdata. Prototype was for struct dfl_fme_br_pdata instead
drivers/fpga/dfl.h:256: warning: Function parameter or member 'revision' not described in 'dfl_feature'

Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20230114155444.794712-1-yilun.xu@intel.com
drivers/fpga/dfl-afu-region.c
drivers/fpga/dfl-afu.h
drivers/fpga/dfl-fme-perf.c
drivers/fpga/dfl-fme-pr.h
drivers/fpga/dfl.h

index 0804b7a0c298617b0c3dc3be936324e3d2e5d598..2e7b4162940654f597b94a00fe47cc97e461b897 100644 (file)
@@ -39,6 +39,7 @@ static struct dfl_afu_mmio_region *get_region_by_index(struct dfl_afu *afu,
 /**
  * afu_mmio_region_add - add a mmio region to given feature dev.
  *
+ * @pdata: afu platform device's pdata.
  * @region_index: region index.
  * @region_size: region size.
  * @phys: region's physical address of this region.
index e5020e2b1f3df634115b55533234a455be426b55..674e9772f0ea73fc89821764d4e0a8d388beb2e6 100644 (file)
@@ -41,7 +41,7 @@ struct dfl_afu_mmio_region {
 };
 
 /**
- * struct fpga_afu_dma_region - afu DMA region data structure
+ * struct dfl_afu_dma_region - afu DMA region data structure
  *
  * @user_addr: region userspace virtual address.
  * @length: region length.
index 587c82be12f7a573a5c92509f7f15aed6935b28a..7422d2bc6f3742fad07df4dd7d6d6afd5981ab75 100644 (file)
  * @fab_port_id: used to indicate current working mode of fabric counters.
  * @fab_lock: lock to protect fabric counters working mode.
  * @cpu: active CPU to which the PMU is bound for accesses.
- * @cpuhp_node: node for CPU hotplug notifier link.
+ * @node: node for CPU hotplug notifier link.
  * @cpuhp_state: state for CPU hotplug notification;
  */
 struct fme_perf_priv {
index 096a699089d30c92237c40708fd3f98f2d81ae01..761f80f63312b3969d6f59ef4ea34779e5bef24c 100644 (file)
@@ -58,7 +58,7 @@ struct dfl_fme_bridge {
 };
 
 /**
- * struct dfl_fme_bridge_pdata - platform data for FME bridge platform device.
+ * struct dfl_fme_br_pdata - platform data for FME bridge platform device.
  *
  * @cdev: container device.
  * @port_id: port id.
index 06cfcd5e84bba837644393d999edcd805e402a9f..5fc424d505c82eb3bae62026226b14d4ffa2a30b 100644 (file)
@@ -231,6 +231,7 @@ struct dfl_feature_irq_ctx {
  *
  * @dev: ptr to pdev of the feature device which has the sub feature.
  * @id: sub feature id.
+ * @revision: revision value of this sub feature.
  * @resource_index: each sub feature has one mmio resource for its registers.
  *                 this index is used to find its mmio resource from the
  *                 feature dev (platform device)'s resources.