| From foo@baz Tue 23 Jun 2020 09:03:02 PM CEST |
| From: Florian Fainelli <f.fainelli@gmail.com> |
| Date: Fri, 5 Jun 2020 09:25:00 -0700 |
| Subject: media: dvb/frontend.h: move out a private internal structure |
| To: linux-kernel@vger.kernel.org |
| Cc: stable@vger.kernel.org, Mauro Carvalho Chehab <mchehab@s-opensource.com>, Florian Fainelli <f.fainelli@gmail.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Michael Krufky <mkrufky@linuxtv.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Shuah Khan <shuah@kernel.org>, Jaedon Shin <jaedon.shin@gmail.com>, Colin Ian King <colin.king@canonical.com>, Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>, Satendra Singh Thakur <satendra.t@samsung.com>, linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)), linux-fsdevel@vger.kernel.org (open list:FILESYSTEMS (VFS and infrastructure)) |
| Message-ID: <20200605162518.28099-4-florian.fainelli@broadcom.com> |
| |
| From: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
| |
| commit f35afa4f60c868d7c7811ba747133acbf39410ac upstream |
| |
| 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> |
| Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| drivers/media/dvb-core/dvb_frontend.c | 11 +++++++++++ |
| include/uapi/linux/dvb/frontend.h | 11 ----------- |
| 2 files changed, 11 insertions(+), 11 deletions(-) |
| |
| --- a/drivers/media/dvb-core/dvb_frontend.c |
| +++ b/drivers/media/dvb-core/dvb_frontend.c |
| @@ -998,6 +998,17 @@ static int dvb_frontend_clear_cache(stru |
| .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), |
| --- a/include/uapi/linux/dvb/frontend.h |
| +++ b/include/uapi/linux/dvb/frontend.h |
| @@ -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 |