commit | d3ef0d7d50e9387abe3ceef8b3b6d8c72dd6b642 | [log] [tgz] |
---|---|---|
author | Przemyslaw Marczak <p.marczak@samsung.com> | Wed Apr 15 13:07:24 2015 +0200 |
committer | Simon Glass <sjg@chromium.org> | Wed Apr 22 11:03:15 2015 -0600 |
tree | 049e945aed984e4e1bbee25aa51145592bb24150 | |
parent | a12a1f5305ad6268843854d32f6716546bc67e85 [diff] |
dm: core: device: add function: dev_get_driver_ops() This commit extends the driver model device's API by function: - dev_get_driver_ops() And this function returns the device's driver's operations if given: - dev pointer, is non-NULL - dev->driver->ops pointer, is non-NULL in other case the, the NULL pointer is returned. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>