diff options
author | Felipe Balbi <[email protected]> | 2012-08-23 13:32:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-09-05 13:26:10 -0700 |
commit | c990f3510357586be63bbe9faf7972212a0dc78f (patch) | |
tree | f31e6ce4928c549a80637c968f1b3924de981339 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | be282059acebcecd789fad1b3d17d826db3d5608 (diff) |
serial: omap: define and use to_uart_omap_port()
current code only works because struct uart_port
is the first member on the uart_omap_port structure.
If, for whatever reason, someone puts another
member as the first of the structure, that cast
won't work anymore. In order to be safe, let's use
a container_of() which, for now, gets optimized into
a cast anyway.
Tested-by: Shubhrajyoti D <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions