Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ac9fb7d2
Commit
ac9fb7d2
authored
Jun 30, 2023
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: drivers: Fix kdoc warnings
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
7d653ad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
arch/parisc/kernel/drivers.c
arch/parisc/kernel/drivers.c
+17
-16
No files found.
arch/parisc/kernel/drivers.c
View file @
ac9fb7d2
...
...
@@ -4,7 +4,7 @@
*
* Copyright (c) 1999 The Puffin Group
* 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) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org>
*
...
...
@@ -74,13 +74,13 @@ static int descend_children(struct device * dev, void * data)
}
/**
*
for_each_padev - Iterate over all devices in the tree
*
@fn:
Function to call for each device.
*
@data:
Data to pass to the called function.
*
for_each_padev - Iterate over all devices in the tree
*
@fn:
Function to call for each device.
*
@data:
Data to pass to the called function.
*
*
This performs a depth-first traversal of the tree, calling the
*
function passed for each node. It calls the function for parents
*
before children.
*
This performs a depth-first traversal of the tree, calling the
*
function passed for each node. It calls the function for parents
*
before children.
*/
static
int
for_each_padev
(
int
(
*
fn
)(
struct
device
*
,
void
*
),
void
*
data
)
...
...
@@ -280,7 +280,7 @@ int __init machine_has_merced_bus(void)
/**
* find_pa_parent_type - Find a parent of a specific type
* @dev: The device to start searching from
* @
pa
dev: The device to start searching from
* @type: The device type to search for.
*
* 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)
/**
* print_pa_hwpath - Returns hardware path for PA devices
* dev: The device to return the path for
* output: Pointer to a previously-allocated array to place the path in.
*
@
dev: The device to return the path for
*
@
output: Pointer to a previously-allocated array to place the path in.
*
* 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
...
...
@@ -379,8 +379,8 @@ EXPORT_SYMBOL(get_pci_node_path);
/**
* print_pci_hwpath - Returns hardware path for PCI devices
* dev: The device to return the path for
* output: Pointer to a previously-allocated array to place the path in.
*
@
dev: The device to return the path for
*
@
output: Pointer to a previously-allocated array to place the path in.
*
* 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
...
...
@@ -415,7 +415,8 @@ static void setup_bus_id(struct parisc_device *padev)
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
);
if
(
!
dev
)
...
...
@@ -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
))
/* nothing */
;
{
/* nothing */
}
;
return
d
.
dev
;
}
...
...
@@ -771,8 +772,8 @@ EXPORT_SYMBOL(hwpath_to_device);
/**
* device_to_hwpath - Populates the hwpath corresponding to the given device.
* @
param dev
the target device
* @pa
ram path
pointer to a previously allocated hwpath struct to be filled in
* @
dev:
the target device
* @pa
th:
pointer to a previously allocated hwpath struct to be filled in
*/
void
device_to_hwpath
(
struct
device
*
dev
,
struct
hardware_path
*
path
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment