Commit ac9fb7d2 authored by Helge Deller's avatar Helge Deller

parisc: drivers: Fix kdoc warnings

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 7d653ad4
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Copyright (c) 1999 The Puffin Group * Copyright (c) 1999 The Puffin Group
* Copyright (c) 2001 Matthew Wilcox for Hewlett Packard * Copyright (c) 2001 Matthew Wilcox for Hewlett Packard
* Copyright (c) 2001 Helge Deller <deller@gmx.de> * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de>
* Copyright (c) 2001,2002 Ryan Bradetich * Copyright (c) 2001,2002 Ryan Bradetich
* Copyright (c) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org> * Copyright (c) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org>
* *
...@@ -74,13 +74,13 @@ static int descend_children(struct device * dev, void * data) ...@@ -74,13 +74,13 @@ static int descend_children(struct device * dev, void * data)
} }
/** /**
* for_each_padev - Iterate over all devices in the tree * for_each_padev - Iterate over all devices in the tree
* @fn: Function to call for each device. * @fn: Function to call for each device.
* @data: Data to pass to the called function. * @data: Data to pass to the called function.
* *
* This performs a depth-first traversal of the tree, calling the * This performs a depth-first traversal of the tree, calling the
* function passed for each node. It calls the function for parents * function passed for each node. It calls the function for parents
* before children. * before children.
*/ */
static int for_each_padev(int (*fn)(struct device *, void *), void * data) static int for_each_padev(int (*fn)(struct device *, void *), void * data)
...@@ -280,7 +280,7 @@ int __init machine_has_merced_bus(void) ...@@ -280,7 +280,7 @@ int __init machine_has_merced_bus(void)
/** /**
* find_pa_parent_type - Find a parent of a specific type * find_pa_parent_type - Find a parent of a specific type
* @dev: The device to start searching from * @padev: The device to start searching from
* @type: The device type to search for. * @type: The device type to search for.
* *
* Walks up the device tree looking for a device of the specified type. * Walks up the device tree looking for a device of the specified type.
...@@ -344,8 +344,8 @@ static char *print_hwpath(struct hardware_path *path, char *output) ...@@ -344,8 +344,8 @@ static char *print_hwpath(struct hardware_path *path, char *output)
/** /**
* print_pa_hwpath - Returns hardware path for PA devices * print_pa_hwpath - Returns hardware path for PA devices
* dev: The device to return the path for * @dev: The device to return the path for
* output: Pointer to a previously-allocated array to place the path in. * @output: Pointer to a previously-allocated array to place the path in.
* *
* This function fills in the output array with a human-readable path * This function fills in the output array with a human-readable path
* to a PA device. This string is compatible with that used by PDC, and * to a PA device. This string is compatible with that used by PDC, and
...@@ -379,8 +379,8 @@ EXPORT_SYMBOL(get_pci_node_path); ...@@ -379,8 +379,8 @@ EXPORT_SYMBOL(get_pci_node_path);
/** /**
* print_pci_hwpath - Returns hardware path for PCI devices * print_pci_hwpath - Returns hardware path for PCI devices
* dev: The device to return the path for * @dev: The device to return the path for
* output: Pointer to a previously-allocated array to place the path in. * @output: Pointer to a previously-allocated array to place the path in.
* *
* This function fills in the output array with a human-readable path * This function fills in the output array with a human-readable path
* to a PCI device. This string is compatible with that used by PDC, and * to a PCI device. This string is compatible with that used by PDC, and
...@@ -415,7 +415,8 @@ static void setup_bus_id(struct parisc_device *padev) ...@@ -415,7 +415,8 @@ static void setup_bus_id(struct parisc_device *padev)
dev_set_name(&padev->dev, name); dev_set_name(&padev->dev, name);
} }
struct parisc_device * __init create_tree_node(char id, struct device *parent) static struct parisc_device * __init create_tree_node(char id,
struct device *parent)
{ {
struct parisc_device *dev = kzalloc(sizeof(*dev), GFP_KERNEL); struct parisc_device *dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (!dev) if (!dev)
...@@ -741,7 +742,7 @@ parse_tree_node(struct device *parent, int index, struct hardware_path *modpath) ...@@ -741,7 +742,7 @@ parse_tree_node(struct device *parent, int index, struct hardware_path *modpath)
}; };
if (device_for_each_child(parent, &recurse_data, descend_children)) if (device_for_each_child(parent, &recurse_data, descend_children))
/* nothing */; { /* nothing */ };
return d.dev; return d.dev;
} }
...@@ -771,8 +772,8 @@ EXPORT_SYMBOL(hwpath_to_device); ...@@ -771,8 +772,8 @@ EXPORT_SYMBOL(hwpath_to_device);
/** /**
* device_to_hwpath - Populates the hwpath corresponding to the given device. * device_to_hwpath - Populates the hwpath corresponding to the given device.
* @param dev the target device * @dev: the target device
* @param path pointer to a previously allocated hwpath struct to be filled in * @path: pointer to a previously allocated hwpath struct to be filled in
*/ */
void device_to_hwpath(struct device *dev, struct hardware_path *path) void device_to_hwpath(struct device *dev, struct hardware_path *path)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment