ce2e4ebdf1
This adds the DEVICE_AND_API_INIT() macro to take in a parameter to assign to device->driver_api. This eliminates the need to assign to driver_api during runtime device initialization. This provides an alternative way to declare devices. This should save a few bytes in ROM for those devices that will never fail initialization (in other words, never need to manipulate driver_api pointer at all). Also clean up the documentation a bit to remove duplicated block of information. Change-Id: I6abed1abe75db2e8babfcf1ecf590491132a5543 Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
---|---|---|
.. | ||
drivers.rst | ||
synchronous_call.rst |