Commit 02578bdf authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: vidtv: remove more ENDIAN_BITFIELD nonsense

Changeset 870e350d ("media: vidtv: get rid of ENDIAN_BITFIELD nonsense")
was incomplete. There are still some wrong endannes logic at
the driver. Get rid of them.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 880a8fc0
...@@ -132,17 +132,9 @@ struct vidtv_psi_table_pat { ...@@ -132,17 +132,9 @@ struct vidtv_psi_table_pat {
*/ */
struct vidtv_psi_table_sdt_service { struct vidtv_psi_table_sdt_service {
__be16 service_id; __be16 service_id;
#if defined(__LITTLE_ENDIAN_BITFIELD)
u8 EIT_present_following:1; u8 EIT_present_following:1;
u8 EIT_schedule:1; u8 EIT_schedule:1;
u8 reserved:6; u8 reserved:6;
#elif defined(__BIG_ENDIAN_BITFIELD)
u8 reserved:6;
u8 EIT_schedule:1;
u8 EIT_present_following:1;
#else
#error "Unknown bitfield ordering"
#endif
__be16 bitfield; /* running_status: 3, free_ca:1, desc_loop_len:12 */ __be16 bitfield; /* running_status: 3, free_ca:1, desc_loop_len:12 */
struct vidtv_psi_desc *descriptor; struct vidtv_psi_desc *descriptor;
struct vidtv_psi_table_sdt_service *next; struct vidtv_psi_table_sdt_service *next;
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
struct vidtv_mpeg_ts_adaption { struct vidtv_mpeg_ts_adaption {
u8 length; u8 length;
struct { struct {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u8 extension:1; u8 extension:1;
u8 private_data:1; u8 private_data:1;
u8 splicing_point:1; u8 splicing_point:1;
...@@ -33,18 +32,6 @@ struct vidtv_mpeg_ts_adaption { ...@@ -33,18 +32,6 @@ struct vidtv_mpeg_ts_adaption {
u8 priority:1; u8 priority:1;
u8 random_access:1; u8 random_access:1;
u8 discontinued:1; u8 discontinued:1;
#elif defined(__BIG_ENDIAN_BITFIELD)
u8 discontinued:1;
u8 random_access:1;
u8 priority:1;
u8 PCR:1;
u8 OPCR:1;
u8 splicing_point:1;
u8 private_data:1;
u8 extension:1;
#else
#error "Unknown bitfield ordering"
#endif
} __packed; } __packed;
u8 data[]; u8 data[];
} __packed; } __packed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment