diff options
| author | Frank Schaefer <[email protected]> | 2012-12-08 11:31:24 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2012-12-22 20:48:57 -0200 |
| commit | 24a6d8497f7e64a8870018ed1ed561755b2075ec (patch) | |
| tree | 12224ad87e9c02b34131d1f9b4cd1db498684174 /tools/perf/scripts/python | |
| parent | 960da93ba56f281261038e85c57ee3ec942dc734 (diff) | |
[media] em28xx: refactor get_next_buf() and use it for vbi data, too
get_next_buf() and vbi_get_next_buf() do exactly the same just with a
different dma queue and buffer. Saving the new buffer pointer back to the
device struct in em28xx_urb_data_copy() instead of doing this from inside
these functions makes it possible to get rid of one of them.
Also refactor the function parameters and return type:
- pass a pointer to struct em28xx as parameter (instead of obtaining the
pointer from the dma queue pointer with the container_of macro) like we do
it in all other functions
- instead of using a pointer-pointer, return the pointer to the new buffer
as return value of the function
Signed-off-by: Frank Schäfer <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions