Skip to content

Commit f35afa4

Browse files
committed
media: dvb/frontend.h: move out a private internal structure
struct dtv_cmds_h is just an ancillary struct used by the dvb_frontend.c to internally store frontend commands. It doesn't belong to the userspace header, nor it is used anywhere, except inside the DVB core. So, remove it from the header. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 192f8bc commit f35afa4

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

drivers/media/dvb-core/dvb_frontend.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,17 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
10001000
.buffer = b \
10011001
}
10021002

1003+
struct dtv_cmds_h {
1004+
char *name; /* A display name for debugging purposes */
1005+
1006+
__u32 cmd; /* A unique ID */
1007+
1008+
/* Flags */
1009+
__u32 set:1; /* Either a set or get property */
1010+
__u32 buffer:1; /* Does this property use the buffer? */
1011+
__u32 reserved:30; /* Align */
1012+
};
1013+
10031014
static struct dtv_cmds_h dtv_cmds[DTV_MAX_COMMAND + 1] = {
10041015
_DTV_CMD(DTV_TUNE, 1, 0),
10051016
_DTV_CMD(DTV_CLEAR, 1, 0),

include/uapi/linux/dvb/frontend.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -384,17 +384,6 @@ enum atscmh_rs_code_mode {
384384
#define NO_STREAM_ID_FILTER (~0U)
385385
#define LNA_AUTO (~0U)
386386

387-
struct dtv_cmds_h {
388-
char *name; /* A display name for debugging purposes */
389-
390-
__u32 cmd; /* A unique ID */
391-
392-
/* Flags */
393-
__u32 set:1; /* Either a set or get property */
394-
__u32 buffer:1; /* Does this property use the buffer? */
395-
__u32 reserved:30; /* Align */
396-
};
397-
398387
/**
399388
* Scale types for the quality parameters.
400389
* @FE_SCALE_NOT_AVAILABLE: That QoS measure is not available. That

0 commit comments

Comments
 (0)