Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a470c42c authored by Kevin Hilman's avatar Kevin Hilman Committed by paul
Browse files

OMAP: omap_device: add to_omap_device() macro



Following the model of to_platform_device(), add to_omap_device()
macro so a platform_device pointer can be converted into an
omap_device pointer.

Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent a16b1f7f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -137,5 +137,7 @@ struct omap_device_pm_latency {
};


#endif
/* Get omap_device pointer from platform_device pointer */
#define to_omap_device(x) container_of((x), struct omap_device, pdev)

#endif