* [2.6 patch] video/pvrusb2/pvrusb2-hdw.c cleanups
@ 2008-03-30 23:28 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2008-03-30 23:28 UTC (permalink / raw)
To: Mike Isely, Mauro Carvalho Chehab; +Cc: video4linux-list, linux-kernel
This patch contains the following cleanups:
- make the following needlessly global function static:
- pvr2_hdw_set_cur_freq()
- #if 0 the following unused global functions:
- pvr2_hdw_get_state_name()
- pvr2_hdw_get_debug_info_unlocked()
- pvr2_hdw_get_debug_info_locked()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
drivers/media/video/pvrusb2/pvrusb2-hdw.c | 6 +++++-
drivers/media/video/pvrusb2/pvrusb2-hdw.h | 3 ---
2 files changed, 5 insertions(+), 4 deletions(-)
5446a1c0b050259bf276f1d365ca151afa276887 diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index d6955fa..77c3c2d 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -983,7 +983,7 @@ unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw)
/* Set the currently tuned frequency and account for all possible
driver-core side effects of this action. */
-void pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val)
+static void pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val)
{
if (hdw->input_val == PVR2_CVAL_INPUT_RADIO) {
if (hdw->freqSelector) {
@@ -1365,11 +1365,13 @@ int pvr2_hdw_untrip(struct pvr2_hdw *hdw)
}
+#if 0
const char *pvr2_hdw_get_state_name(unsigned int id)
{
if (id >= ARRAY_SIZE(pvr2_state_names)) return NULL;
return pvr2_state_names[id];
}
+#endif /* 0 */
int pvr2_hdw_get_streaming(struct pvr2_hdw *hdw)
@@ -3656,6 +3658,7 @@ static void pvr2_hdw_state_sched(struct pvr2_hdw *hdw)
queue_work(hdw->workqueue,&hdw->workpoll);
}
+#if 0
void pvr2_hdw_get_debug_info_unlocked(const struct pvr2_hdw *hdw,
struct pvr2_hdw_debug_info *ptr)
@@ -3697,6 +3700,7 @@ void pvr2_hdw_get_debug_info_locked(struct pvr2_hdw *hdw,
} while(0); LOCK_GIVE(hdw->ctl_lock);
}
+#endif /* 0 */
int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *dp)
{
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h
index 3ad7a13..1b4e5e3 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h
@@ -90,9 +90,6 @@ enum pvr2_v4l_type {
/* Translate configuration enum to a string label */
const char *pvr2_config_get_name(enum pvr2_config);
-/* Translate a master state enum to a string label */
-const char *pvr2_hdw_get_state_name(unsigned int);
-
struct pvr2_hdw;
/* Create and return a structure for interacting with the underlying
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2.6 patch] video/pvrusb2/pvrusb2-hdw.c cleanups
2008-04-14 18:41 Adrian Bunk
@ 2008-04-18 6:03 ` Mike Isely
0 siblings, 0 replies; 3+ messages in thread
From: Mike Isely @ 2008-04-18 6:03 UTC (permalink / raw)
To: Adrian Bunk
Cc: Mauro Carvalho Chehab, Video4Linux list,
Linux Kernel Mailing List, Mike Isely at pobox
On Mon, 14 Apr 2008, Adrian Bunk wrote:
> This patch contains the following cleanups:
> - make the following needlessly global function static:
> - pvr2_hdw_set_cur_freq()
> - #if 0 the following unused global functions:
> - pvr2_hdw_get_state_name()
> - pvr2_hdw_get_debug_info_unlocked()
> - pvr2_hdw_get_debug_info_locked()
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>
> ---
FYI, I've merged this change into my local repository, and expect to
push it back up for 2.6.26 as part of a pent-up pile of pvrusb2 changes.
-Mike
--
Mike Isely
isely @ pobox (dot) com
PGP: 03 54 43 4D 75 E5 CC 92 71 16 01 E2 B5 F5 C1 E8
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] video/pvrusb2/pvrusb2-hdw.c cleanups
@ 2008-04-14 18:41 Adrian Bunk
2008-04-18 6:03 ` Mike Isely
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2008-04-14 18:41 UTC (permalink / raw)
To: Mike Isely, Mauro Carvalho Chehab; +Cc: video4linux-list, linux-kernel
This patch contains the following cleanups:
- make the following needlessly global function static:
- pvr2_hdw_set_cur_freq()
- #if 0 the following unused global functions:
- pvr2_hdw_get_state_name()
- pvr2_hdw_get_debug_info_unlocked()
- pvr2_hdw_get_debug_info_locked()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
This patch has been sent on:
- 31 Mar 2008
drivers/media/video/pvrusb2/pvrusb2-hdw.c | 6 +++++-
drivers/media/video/pvrusb2/pvrusb2-hdw.h | 3 ---
2 files changed, 5 insertions(+), 4 deletions(-)
5446a1c0b050259bf276f1d365ca151afa276887 diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index d6955fa..77c3c2d 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -983,7 +983,7 @@ unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw)
/* Set the currently tuned frequency and account for all possible
driver-core side effects of this action. */
-void pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val)
+static void pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val)
{
if (hdw->input_val == PVR2_CVAL_INPUT_RADIO) {
if (hdw->freqSelector) {
@@ -1365,11 +1365,13 @@ int pvr2_hdw_untrip(struct pvr2_hdw *hdw)
}
+#if 0
const char *pvr2_hdw_get_state_name(unsigned int id)
{
if (id >= ARRAY_SIZE(pvr2_state_names)) return NULL;
return pvr2_state_names[id];
}
+#endif /* 0 */
int pvr2_hdw_get_streaming(struct pvr2_hdw *hdw)
@@ -3656,6 +3658,7 @@ static void pvr2_hdw_state_sched(struct pvr2_hdw *hdw)
queue_work(hdw->workqueue,&hdw->workpoll);
}
+#if 0
void pvr2_hdw_get_debug_info_unlocked(const struct pvr2_hdw *hdw,
struct pvr2_hdw_debug_info *ptr)
@@ -3697,6 +3700,7 @@ void pvr2_hdw_get_debug_info_locked(struct pvr2_hdw *hdw,
} while(0); LOCK_GIVE(hdw->ctl_lock);
}
+#endif /* 0 */
int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *dp)
{
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h
index 3ad7a13..1b4e5e3 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h
@@ -90,9 +90,6 @@ enum pvr2_v4l_type {
/* Translate configuration enum to a string label */
const char *pvr2_config_get_name(enum pvr2_config);
-/* Translate a master state enum to a string label */
-const char *pvr2_hdw_get_state_name(unsigned int);
-
struct pvr2_hdw;
/* Create and return a structure for interacting with the underlying
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-18 6:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-30 23:28 [2.6 patch] video/pvrusb2/pvrusb2-hdw.c cleanups Adrian Bunk
2008-04-14 18:41 Adrian Bunk
2008-04-18 6:03 ` Mike Isely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®