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:
Michał Barnaś 2021-08-09 13:59:15 +02:00 committed by Christopher Friedt
commit 1b06477832

View file

@ -147,7 +147,7 @@ A subsystem API definition typically looks like this:
struct subsystem_api *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
@ -474,7 +474,7 @@ is made within the init function:
{
...
/* 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 */
sys_write32(DEVICE_MMIO_GET(dev, grault), 0xDEADBEEF);
sys_write32(DEVICE_MMIO_GET(dev, courge), 0xF0CCAC1A);
sys_write32(0xDEADBEEF, DEVICE_MMIO_GET(dev, grault));
sys_write32(0xF0CCAC1A, DEVICE_MMIO_GET(dev, courge));
...
}