Skip to content

Commit 774c4a3

Browse files
shijujose4willdeacon
authored andcommitted
ACPI/IORT: Fix doc warnings in iort.c
Fix following warnings caused by mismatch between function parameters and function comments. drivers/acpi/arm64/iort.c:55: warning: Function parameter or member 'iort_node' not described in 'iort_set_fwnode' drivers/acpi/arm64/iort.c:55: warning: Excess function parameter 'node' description in 'iort_set_fwnode' drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'id' not described in 'iort_get_device_domain' drivers/acpi/arm64/iort.c:682: warning: Function parameter or member 'bus_token' not described in 'iort_get_device_domain' drivers/acpi/arm64/iort.c:682: warning: Excess function parameter 'req_id' description in 'iort_get_device_domain' drivers/acpi/arm64/iort.c:1142: warning: Function parameter or member 'dma_size' not described in 'iort_dma_setup' drivers/acpi/arm64/iort.c:1142: warning: Excess function parameter 'size' description in 'iort_dma_setup' drivers/acpi/arm64/iort.c:1534: warning: Function parameter or member 'ops' not described in 'iort_add_platform_device' Signed-off-by: Shiju Jose <[email protected]> Acked-by: Hanjun Guo <[email protected]> Acked-by: Lorenzo Pieralisi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 03659ef commit 774c4a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/acpi/arm64/iort.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static DEFINE_SPINLOCK(iort_fwnode_lock);
4444
* iort_set_fwnode() - Create iort_fwnode and use it to register
4545
* iommu data in the iort_fwnode_list
4646
*
47-
* @node: IORT table node associated with the IOMMU
47+
* @iort_node: IORT table node associated with the IOMMU
4848
* @fwnode: fwnode associated with the IORT node
4949
*
5050
* Returns: 0 on success
@@ -673,7 +673,8 @@ static int iort_dev_find_its_id(struct device *dev, u32 id,
673673
/**
674674
* iort_get_device_domain() - Find MSI domain related to a device
675675
* @dev: The device.
676-
* @req_id: Requester ID for the device.
676+
* @id: Requester ID for the device.
677+
* @bus_token: irq domain bus token.
677678
*
678679
* Returns: the MSI domain for this device, NULL otherwise
679680
*/
@@ -1136,7 +1137,7 @@ static int rc_dma_get_range(struct device *dev, u64 *size)
11361137
*
11371138
* @dev: device to configure
11381139
* @dma_addr: device DMA address result pointer
1139-
* @size: DMA range size result pointer
1140+
* @dma_size: DMA range size result pointer
11401141
*/
11411142
void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *dma_size)
11421143
{
@@ -1526,6 +1527,7 @@ static __init const struct iort_dev_config *iort_get_dev_cfg(
15261527
/**
15271528
* iort_add_platform_device() - Allocate a platform device for IORT node
15281529
* @node: Pointer to device ACPI IORT node
1530+
* @ops: Pointer to IORT device config struct
15291531
*
15301532
* Returns: 0 on success, <0 failure
15311533
*/

0 commit comments

Comments
 (0)