diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-05-23 09:36:09 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-07-01 05:01:13 -0400 |
commit | 4a9a5e390cb57f12de77b94b07dccf14752157ad (patch) | |
tree | ad46b480fa726694496dd55e0c38f278cb44c301 /drivers/video | |
parent | 24e6289c029b0cf5b4f75e12c1b66000d441c9ed (diff) |
OMAP: DSS2: DSI: Change dummy macros to inline functions
Using empty macros for performance measurement functions when DSS DEBUG
is not enabled causes an unused variable warning.
Change the empty macros to empty inline functions to remove the
warning.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 345757cfcbee..69c2d4fe0746 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -493,9 +493,18 @@ static void dsi_perf_show(struct platform_device *dsidev, const char *name) | |||
493 | total_bytes * 1000 / total_us); | 493 | total_bytes * 1000 / total_us); |
494 | } | 494 | } |
495 | #else | 495 | #else |
496 | #define dsi_perf_mark_setup(x) | 496 | static inline void dsi_perf_mark_setup(struct platform_device *dsidev) |
497 | #define dsi_perf_mark_start(x) | 497 | { |
498 | #define dsi_perf_show(x, y) | 498 | } |
499 | |||
500 | static inline void dsi_perf_mark_start(struct platform_device *dsidev) | ||
501 | { | ||
502 | } | ||
503 | |||
504 | static inline void dsi_perf_show(struct platform_device *dsidev, | ||
505 | const char *name) | ||
506 | { | ||
507 | } | ||
499 | #endif | 508 | #endif |
500 | 509 | ||
501 | static void print_irq_status(u32 status) | 510 | static void print_irq_status(u32 status) |