Skip to content

Commit

Permalink
media: dvb/frontend.h: move out a private internal structure
Browse files Browse the repository at this point in the history
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 <mchehab@s-opensource.com>
  • Loading branch information
Mauro Carvalho Chehab committed Sep 5, 2017
1 parent 192f8bc commit f35afa4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions drivers/media/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,17 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
.buffer = b \
}

struct dtv_cmds_h {
char *name; /* A display name for debugging purposes */

__u32 cmd; /* A unique ID */

/* Flags */
__u32 set:1; /* Either a set or get property */
__u32 buffer:1; /* Does this property use the buffer? */
__u32 reserved:30; /* Align */
};

static struct dtv_cmds_h dtv_cmds[DTV_MAX_COMMAND + 1] = {
_DTV_CMD(DTV_TUNE, 1, 0),
_DTV_CMD(DTV_CLEAR, 1, 0),
Expand Down
11 changes: 0 additions & 11 deletions include/uapi/linux/dvb/frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,17 +384,6 @@ enum atscmh_rs_code_mode {
#define NO_STREAM_ID_FILTER (~0U)
#define LNA_AUTO (~0U)

struct dtv_cmds_h {
char *name; /* A display name for debugging purposes */

__u32 cmd; /* A unique ID */

/* Flags */
__u32 set:1; /* Either a set or get property */
__u32 buffer:1; /* Does this property use the buffer? */
__u32 reserved:30; /* Align */
};

/**
* Scale types for the quality parameters.
* @FE_SCALE_NOT_AVAILABLE: That QoS measure is not available. That
Expand Down

0 comments on commit f35afa4

Please sign in to comment.