]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: core: device: add function: dev_get_driver_ops()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 15 Apr 2015 11:07:24 +0000 (13:07 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:30:10 +0000 (22:30 +0200)
commitbed22becddae1ca763dce090fe5e82801eed44e9
treed30931c4489ed05d61bcffe68b2217ad0d50f18b
parentd1efb365332d73780545882d8847e21eac1c3b66
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>
drivers/core/device.c
include/dm/device.h