media: vidtv: get rid of ENDIAN_BITFIELD nonsense

The two places where ENDIAN_BITFIELD is used is for a single
8-bits integer. No need to correct endiannes on such cases.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Mauro Carvalho Chehab 2020-09-14 11:28:18 +02:00
parent 044e27ae78
commit 870e350d4e
2 changed files with 0 additions and 17 deletions

View File

@ -99,17 +99,9 @@ struct vidtv_psi_table_header {
__be16 bitfield; /* syntax: 1, zero: 1, one: 2, section_length: 13 */
__be16 id; /* TS ID */
#if defined(__LITTLE_ENDIAN_BITFIELD)
u8 current_next:1;
u8 version:5;
u8 one2:2;
#elif defined(__BIG_ENDIAN_BITFIELD)
u8 one2:2;
u8 version:5;
u8 current_next:1;
#else
#error "Unknown bitfield ordering"
#endif
u8 section_id; /* section_number */
u8 last_section; /* last_section_number */
} __packed;

View File

@ -53,19 +53,10 @@ struct vidtv_mpeg_ts {
u8 sync_byte;
__be16 bitfield; /* tei: 1, payload_start:1 priority: 1, pid:13 */
struct {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u8 continuity_counter:4;
u8 payload:1;
u8 adaptation_field:1;
u8 scrambling:2;
#elif defined(__BIG_ENDIAN_BITFIELD)
u8 scrambling:2;
u8 adaptation_field:1;
u8 payload:1;
u8 continuity_counter:4;
#else
#error "Unknown bitfield ordering"
#endif
} __packed;
struct vidtv_mpeg_ts_adaption adaption[];
} __packed;