Skip to content

Commit 44414e1

Browse files
sfrothwellgregkh
authored andcommitted
Driver core: Update some prototypes in platform.txt
Just make these match the actual code. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent cd35449 commit 44414e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Documentation/driver-model/platform.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ None the less, there are some APIs to support such legacy drivers. Avoid
122122
using these calls except with such hotplug-deficient drivers.
123123

124124
struct platform_device *platform_device_alloc(
125-
char *name, unsigned id);
125+
const char *name, int id);
126126

127127
You can use platform_device_alloc() to dynamically allocate a device, which
128128
you will then initialize with resources and platform_device_register().
129129
A better solution is usually:
130130

131131
struct platform_device *platform_device_register_simple(
132-
char *name, unsigned id,
133-
struct resource *res, unsigned nres);
132+
const char *name, int id,
133+
struct resource *res, unsigned int nres);
134134

135135
You can use platform_device_register_simple() as a one-step call to allocate
136136
and register a device.

0 commit comments

Comments
 (0)