History

media: dvb headers: make checkpatch happier

Adjust dvb ca.h, dmx.h and frontend.h in order to make checkpatch happier. Now, it only complains about the typedefs, and those are there just to provide backward userspace compatibility.

Mauro Carvalho Chehab committed 9 years ago

Commit e4faa091 parent da682493 files · +6 −7Browse files

Showing the changes to include/uapi/linux (3 of 3 files). Show all

Unified · Split

3 files
  1. include/uapi/linux/dvb/ca.h +1 −1
  2. include/uapi/linux/dvb/dmx.h +2 −3
  3. include/uapi/linux/dvb/frontend.h +3 −3
include/uapi/linux/dvb/ca.h+1−1
@@ -139,7 +139,7 @@ struct ca_descr { · 138 unmodified lines
139#define CA_SEND_MSG _IOW('o', 133, struct ca_msg)139#define CA_SEND_MSG _IOW('o', 133, struct ca_msg)
140#define CA_SET_DESCR _IOW('o', 134, struct ca_descr)140#define CA_SET_DESCR _IOW('o', 134, struct ca_descr)
141 141
142#if !defined (__KERNEL__)142#if !defined(__KERNEL__)
143 143
144/* This is needed for legacy userspace support */144/* This is needed for legacy userspace support */
145typedef struct ca_slot_info ca_slot_info_t;145typedef struct ca_slot_info ca_slot_info_t;
include/uapi/linux/dvb/dmx.h+2−3
@@ -189,8 +189,7 @@ struct dmx_sct_filter_params { · 188 unmodified lines
189 * @pes_type: Type of the pes filter, as specified by &enum dmx_pes_type.189 * @pes_type: Type of the pes filter, as specified by &enum dmx_pes_type.
190 * @flags: Demux PES flags.190 * @flags: Demux PES flags.
191 */191 */
192struct dmx_pes_filter_params192struct dmx_pes_filter_params {
193{
194 __u16 pid;193 __u16 pid;
195 enum dmx_input input;194 enum dmx_input input;
196 enum dmx_output output;195 enum dmx_output output;
@@ -221,7 +220,7 @@ struct dmx_stc { · 24 unmodified lines
221#define DMX_ADD_PID _IOW('o', 51, __u16)220#define DMX_ADD_PID _IOW('o', 51, __u16)
222#define DMX_REMOVE_PID _IOW('o', 52, __u16)221#define DMX_REMOVE_PID _IOW('o', 52, __u16)
223 222
224#if !defined (__KERNEL__)223#if !defined(__KERNEL__)
225 224
226/* This is needed for legacy userspace support */225/* This is needed for legacy userspace support */
227typedef enum dmx_output dmx_output_t;226typedef enum dmx_output dmx_output_t;
include/uapi/linux/dvb/frontend.h+3−3
@@ -907,7 +907,7 @@ struct dtv_properties { · 906 unmodified lines
907#define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties)907#define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties)
908#define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties)908#define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties)
909 909
910#if defined(__DVB_CORE__) || !defined (__KERNEL__)910#if defined(__DVB_CORE__) || !defined(__KERNEL__)
911 911
912/*912/*
913 * DEPRECATED: Everything below is deprecated in favor of DVBv5 API913 * DEPRECATED: Everything below is deprecated in favor of DVBv5 API
@@ -982,8 +982,8 @@ struct dvb_ofdm_parameters { · 68 unmodified lines
982};982};
983 983
984struct dvb_frontend_parameters {984struct dvb_frontend_parameters {
985 __u32 frequency; /* (absolute) frequency in Hz for DVB-C/DVB-T/ATSC */985 __u32 frequency; /* (absolute) frequency in Hz for DVB-C/DVB-T/ATSC */
986 /* intermediate frequency in kHz for DVB-S */986 /* intermediate frequency in kHz for DVB-S */
987 fe_spectral_inversion_t inversion;987 fe_spectral_inversion_t inversion;
988 union {988 union {
989 struct dvb_qpsk_parameters qpsk; /* DVB-S */989 struct dvb_qpsk_parameters qpsk; /* DVB-S */