doc: change functions arguments in drivers documentation
Fix functions arguments in documentation to match order of their real declarations Signed-off-by: Michał Barnaś <mb@semihalf.com>
This commit is contained in:
parent
bfd45e5b8c
commit
1b06477832
1 changed files with 4 additions and 4 deletions
|
@ -147,7 +147,7 @@ A subsystem API definition typically looks like this:
|
||||||
struct subsystem_api *api;
|
struct subsystem_api *api;
|
||||||
|
|
||||||
api = (struct subsystem_api *)dev->api;
|
api = (struct subsystem_api *)dev->api;
|
||||||
api->do_that(dev, foo, bar);
|
api->do_that(dev, baz);
|
||||||
}
|
}
|
||||||
|
|
||||||
A driver implementing a particular subsystem will define the real implementation
|
A driver implementing a particular subsystem will define the real implementation
|
||||||
|
@ -474,7 +474,7 @@ is made within the init function:
|
||||||
{
|
{
|
||||||
...
|
...
|
||||||
/* Write some data to the MMIO region */
|
/* Write some data to the MMIO region */
|
||||||
sys_write32(DEVICE_MMIO_GET(dev), 0xDEADBEEF);
|
sys_write32(0xDEADBEEF, DEVICE_MMIO_GET(dev));
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,8 +536,8 @@ For example:
|
||||||
{
|
{
|
||||||
...
|
...
|
||||||
/* Write some data to the MMIO regions */
|
/* Write some data to the MMIO regions */
|
||||||
sys_write32(DEVICE_MMIO_GET(dev, grault), 0xDEADBEEF);
|
sys_write32(0xDEADBEEF, DEVICE_MMIO_GET(dev, grault));
|
||||||
sys_write32(DEVICE_MMIO_GET(dev, courge), 0xF0CCAC1A);
|
sys_write32(0xF0CCAC1A, DEVICE_MMIO_GET(dev, courge));
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue