Skip to content

Commit 1b06477

Browse files
barnas-michalcfriedt
authored andcommitted
doc: change functions arguments in drivers documentation
Fix functions arguments in documentation to match order of their real declarations Signed-off-by: Michał Barnaś <[email protected]>
1 parent bfd45e5 commit 1b06477

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/reference/drivers/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ A subsystem API definition typically looks like this:
147147
struct subsystem_api *api;
148148
149149
api = (struct subsystem_api *)dev->api;
150-
api->do_that(dev, foo, bar);
150+
api->do_that(dev, baz);
151151
}
152152
153153
A driver implementing a particular subsystem will define the real implementation
@@ -474,7 +474,7 @@ is made within the init function:
474474
{
475475
...
476476
/* Write some data to the MMIO region */
477-
sys_write32(DEVICE_MMIO_GET(dev), 0xDEADBEEF);
477+
sys_write32(0xDEADBEEF, DEVICE_MMIO_GET(dev));
478478
...
479479
}
480480
@@ -536,8 +536,8 @@ For example:
536536
{
537537
...
538538
/* Write some data to the MMIO regions */
539-
sys_write32(DEVICE_MMIO_GET(dev, grault), 0xDEADBEEF);
540-
sys_write32(DEVICE_MMIO_GET(dev, courge), 0xF0CCAC1A);
539+
sys_write32(0xDEADBEEF, DEVICE_MMIO_GET(dev, grault));
540+
sys_write32(0xF0CCAC1A, DEVICE_MMIO_GET(dev, courge));
541541
...
542542
}
543543

0 commit comments

Comments
 (0)