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
139139 #define CA_SEND_MSG _IOW('o', 133, struct ca_msg)
140140 #define CA_SET_DESCR _IOW('o', 134, struct ca_descr)
141141
142−#if !defined (__KERNEL__)
142+#if !defined(__KERNEL__)
143143
144144 /* This is needed for legacy userspace support */
145145 typedef 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
189189 * @pes_type: Type of the pes filter, as specified by &enum dmx_pes_type.
190190 * @flags: Demux PES flags.
191191 */
192−struct dmx_pes_filter_params
193−{
192+struct dmx_pes_filter_params {
194193 __u16 pid;
195194 enum dmx_input input;
196195 enum dmx_output output;
@@ -221,7 +220,7 @@ struct dmx_stc { · 24 unmodified lines
221220 #define DMX_ADD_PID _IOW('o', 51, __u16)
222221 #define DMX_REMOVE_PID _IOW('o', 52, __u16)
223222
224−#if !defined (__KERNEL__)
223+#if !defined(__KERNEL__)
225224
226225 /* This is needed for legacy userspace support */
227226 typedef enum dmx_output dmx_output_t;
include/uapi/linux/dvb/frontend.h+3−3
@@ -907,7 +907,7 @@ struct dtv_properties { · 906 unmodified lines
907907 #define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties)
908908 #define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties)
909909
910−#if defined(__DVB_CORE__) || !defined (__KERNEL__)
910+#if defined(__DVB_CORE__) || !defined(__KERNEL__)
911911
912912 /*
913913 * DEPRECATED: Everything below is deprecated in favor of DVBv5 API
@@ -982,8 +982,8 @@ struct dvb_ofdm_parameters { · 68 unmodified lines
982982 };
983983
984984 struct dvb_frontend_parameters {
985− __u32 frequency; /* (absolute) frequency in Hz for DVB-C/DVB-T/ATSC */
986− /* intermediate frequency in kHz for DVB-S */
985+ __u32 frequency; /* (absolute) frequency in Hz for DVB-C/DVB-T/ATSC */
986+ /* intermediate frequency in kHz for DVB-S */
987987 fe_spectral_inversion_t inversion;
988988 union {
989989 struct dvb_qpsk_parameters qpsk; /* DVB-S */