diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-02-05 14:19:00 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 18:14:46 +0300 |
commit | ed3056f015de90a53127d05c34d49fe3e04675a4 (patch) | |
tree | 9f68eaedeb28f4b426a512ff36509949a4d3e793 /drivers/media/platform/vsp1/vsp1_drm.c | |
parent | 84694edcae195bd3b0dadd9df176a01ae5912621 (diff) | |
download | linux-ed3056f015de90a53127d05c34d49fe3e04675a4.tar.xz |
media: media.h: reorganize header to make it easier to understand
The media.h public header is very messy. It mixes legacy and 'new' defines
and it is not easy to figure out what should and what shouldn't be used. It
also contains confusing comment that are either out of date or completely
uninteresting for anyone that needs to use this header.
The patch groups all entity functions together, including the 'old' defines
based on the old range base. The reader just wants to know about the available
functions and doesn't care about what range is used.
All legacy defines are moved to the end of the header, so it is easier to
locate them and just ignore them.
The legacy structs in the struct media_entity_desc are put under
also a much more effective signal to the reader that they shouldn't be used
compared to the old method of relying on '#if 1' followed by a comment.
The unused MEDIA_INTF_T_ALSA_* defines are also moved to the end of the header
in the legacy area. They are also dropped from intf_type() in media-entity.c.
All defines are also aligned at the same tab making the header easier to read.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
[mchehab@s-opensource.com: removed lots of spaces before tabs; typo changes ->change ]
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_drm.c')
0 files changed, 0 insertions, 0 deletions