From: Manu Abraham <abraham.manu@gmail.com>
To: Adrian Bunk <bunk@stusta.de>
Cc: linux-dvb-maintainer@linuxtv.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC: 2.6 patch] drivers/media/dvb/: possible cleanups
Date: Sun, 08 Jan 2006 11:07:08 +0400 [thread overview]
Message-ID: <43C0BA1C.6080500@gmail.com> (raw)
In-Reply-To: <20060107181258.GM3774@stusta.de>
Adrian Bunk wrote:
>This patch contains the following possible cleanups:
>- make needlessly global code static
>- #if 0 the following unused global functions:
> - b2c2/flexcop-dma.c: flexcop_dma_control_packet_irq()
> - b2c2/flexcop-dma.c: flexcop_dma_config_packet_count()
>
>Please review which of these changes do make sense and which conflict
>with pending patches.
>
>
>Signed-off-by: Adrian Bunk <bunk@stusta.de>
>
>
> u8 dst_check_sum(u8 * buf, u32 len);
> struct dst_state* dst_attach(struct dst_state* state, struct dvb_adapter *dvb_adapter);
> int dst_ca_attach(struct dst_state *state, struct dvb_adapter *dvb_adapter);
>-int dst_gpio_outb(struct dst_state* state, u32 mask, u32 enbb, u32 outhigh, int delay);
>-
>-int dst_command(struct dst_state* state, u8 * data, u8 len);
>
>
> #endif // DST_COMMON_H
>--- linux-2.6.15-mm2-full/drivers/media/dvb/bt8xx/dst.c.old 2006-01-07 16:42:33.000000000 +0100
>+++ linux-2.6.15-mm2-full/drivers/media/dvb/bt8xx/dst.c 2006-01-07 16:54:56.000000000 +0100
>@@ -63,6 +63,7 @@
> } \
> } while(0)
>
>+static int dst_command(struct dst_state *state, u8 *data, u8 len);
>
> static void dst_packsize(struct dst_state *state, int psize)
> {
>@@ -72,7 +73,8 @@
> bt878_device_control(state->bt, DST_IG_TS, &bits);
> }
>
>-int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb, u32 outhigh, int delay)
>+static int dst_gpio_outb(struct dst_state *state, u32 mask, u32 enbb,
>+ u32 outhigh, int delay)
> {
> union dst_gpio_packet enb;
> union dst_gpio_packet bits;
>@@ -101,9 +103,8 @@
>
> return 0;
> }
>-EXPORT_SYMBOL(dst_gpio_outb);
>
>-int dst_gpio_inb(struct dst_state *state, u8 *result)
>+static int dst_gpio_inb(struct dst_state *state, u8 *result)
> {
> union dst_gpio_packet rd_packet;
> int err;
>@@ -117,7 +118,6 @@
>
> return 0;
> }
>-EXPORT_SYMBOL(dst_gpio_inb);
>
> int rdc_reset_state(struct dst_state *state)
> {
>@@ -137,7 +137,7 @@
> }
> EXPORT_SYMBOL(rdc_reset_state);
>
>-int rdc_8820_reset(struct dst_state *state)
>+static int rdc_8820_reset(struct dst_state *state)
> {
> dprintk(verbose, DST_DEBUG, 1, "Resetting DST");
> if (dst_gpio_outb(state, RDC_8820_RESET, RDC_8820_RESET, 0, NO_DELAY) < 0) {
>@@ -152,9 +152,8 @@
>
> return 0;
> }
>-EXPORT_SYMBOL(rdc_8820_reset);
>
>-int dst_pio_enable(struct dst_state *state)
>+static int dst_pio_enable(struct dst_state *state)
> {
> if (dst_gpio_outb(state, ~0, RDC_8820_PIO_0_ENABLE, 0, NO_DELAY) < 0) {
> dprintk(verbose, DST_ERROR, 1, "dst_gpio_outb ERROR !");
>@@ -164,7 +163,6 @@
>
> return 0;
> }
>-EXPORT_SYMBOL(dst_pio_enable);
>
> int dst_pio_disable(struct dst_state *state)
> {
>@@ -602,7 +600,7 @@
>
> */
>
>-struct dst_types dst_tlist[] = {
>+static struct dst_types dst_tlist[] = {
> {
> .device_id = "200103A",
> .offset = 0,
>@@ -958,7 +956,7 @@
> return 0;
> }
>
>-int dst_command(struct dst_state *state, u8 *data, u8 len)
>+static int dst_command(struct dst_state *state, u8 *data, u8 len)
> {
> u8 reply;
>
>@@ -1021,7 +1019,6 @@
> return -EIO;
>
> }
>-EXPORT_SYMBOL(dst_command);
>
> static int dst_get_signal(struct dst_state *state)
> {
>
>
dst is currently a bit broken ATM and there are quite a bit changes that
haven't yet gone into linuxtv.org CVS tree. So i would be of the
opinion, that if you can hold off on the patches to the dst/dst_ca
module till it's fixed, that would be quite helpful.
Thanks,
Manu
next prev parent reply other threads:[~2006-01-08 7:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-07 18:12 [RFC: 2.6 patch] drivers/media/dvb/: possible cleanups Adrian Bunk
2006-01-07 18:42 ` [linux-dvb-maintainer] " Michael Krufky
[not found] ` <1136848727.6782.75.camel@localhost>
2006-01-14 2:09 ` Adrian Bunk
2006-01-08 7:07 ` Manu Abraham [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-22 17:10 Adrian Bunk
2006-01-22 17:40 ` Michael Krufky
2006-01-22 17:51 ` Patrick Boettcher
2006-01-22 18:05 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43C0BA1C.6080500@gmail.com \
--to=abraham.manu@gmail.com \
--cc=bunk@stusta.de \
--cc=linux-dvb-maintainer@linuxtv.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox