Skip to content

Commit

Permalink
misc: xilinx_trafgen: Fix documentation warnings
Browse files Browse the repository at this point in the history
Fix below kernel-doc warnings
warning: expecting prototype for enum xtg_sysfs_ioctl. Prototype was for enum xtg_sysfs_ioctl_opcode instead
warning: expecting prototype for xtg_prepare_param_words(). Prototype was for xtg_prepare_param_word() instead

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
  • Loading branch information
Shubhrajyoti Datta authored and Michal Simek committed Nov 15, 2021
1 parent ba1d4e4 commit c78e822
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/misc/xilinx_trafgen.c
Expand Up @@ -299,7 +299,7 @@ struct xtg_dev_info {
};

/**
* enum xtg_sysfs_ioctl - Ioctl opcodes
* enum xtg_sysfs_ioctl_opcode - Ioctl opcodes
* @XTG_GET_MASTER_CMP_STS: get master complete status
* @XTG_GET_SLV_CTRL_REG: get slave control reg status
* @XTG_GET_ERR_STS: get error status
Expand Down Expand Up @@ -505,7 +505,7 @@ static void xtg_prepare_cmd_words(struct xtg_dev_info *tg,
}

/**
* xtg_prepare_param_words - Prepares Parameter RAM word
* xtg_prepare_param_word - Prepares Parameter RAM word
* @tg: Pointer to xtg_dev_info structure
* @cmdp: Pointer to xtg_pram structure
* @param_word: Pointer to Param Word that needs to be prepared
Expand Down Expand Up @@ -744,7 +744,7 @@ static ssize_t xtg_sysfs_ioctl(struct device *dev, const char *buf,
case XTG_SET_STREAM_ENABLE:
if (wrval) {
rdval = readl(tg->regs + XTG_STREAM_CNTL_OFFSET);
rdval |= XTG_STREAM_CNTL_STEN_MASK,
rdval |= XTG_STREAM_CNTL_STEN_MASK;
writel(rdval,
tg->regs + XTG_STREAM_CNTL_OFFSET);
} else {
Expand Down

0 comments on commit c78e822

Please sign in to comment.