File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments