trivial documentation patch for platform.txt
Found a couple of typos in the Documentation/driver-model/platform.txt file. This patch fixes both of them. Signed-off-by: Erik Hovland <erik@hovland.org> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
parent
1b3c3714cb
commit
be7d2f775c
|
@ -66,7 +66,7 @@ runtime memory footprint:
|
||||||
|
|
||||||
Device Enumeration
|
Device Enumeration
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
As a rule, platform specific (and often board-specific) setup code wil
|
As a rule, platform specific (and often board-specific) setup code will
|
||||||
register platform devices:
|
register platform devices:
|
||||||
|
|
||||||
int platform_device_register(struct platform_device *pdev);
|
int platform_device_register(struct platform_device *pdev);
|
||||||
|
@ -106,7 +106,7 @@ It's built from two components:
|
||||||
* platform_device.id ... the device instance number, or else "-1"
|
* platform_device.id ... the device instance number, or else "-1"
|
||||||
to indicate there's only one.
|
to indicate there's only one.
|
||||||
|
|
||||||
These are catenated, so name/id "serial"/0 indicates bus_id "serial.0", and
|
These are concatenated, so name/id "serial"/0 indicates bus_id "serial.0", and
|
||||||
"serial/3" indicates bus_id "serial.3"; both would use the platform_driver
|
"serial/3" indicates bus_id "serial.3"; both would use the platform_driver
|
||||||
named "serial". While "my_rtc"/-1 would be bus_id "my_rtc" (no instance id)
|
named "serial". While "my_rtc"/-1 would be bus_id "my_rtc" (no instance id)
|
||||||
and use the platform_driver called "my_rtc".
|
and use the platform_driver called "my_rtc".
|
||||||
|
|
Loading…
Reference in a new issue