2006-02-10 00:46:44

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] drivers/media/dvb/bt8xx/: make 2 structs static

This patch makes two needlessly global structs static.


Signed-off-by: Adrian Bunk <[email protected]>

---

drivers/media/dvb/bt8xx/bt878.c | 2 +-
drivers/media/dvb/bt8xx/dst.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/bt878.c.old 2006-02-09 22:09:00.000000000 +0100
+++ linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/bt878.c 2006-02-09 22:09:07.000000000 +0100
@@ -382,7 +382,7 @@
EXPORT_SYMBOL(bt878_device_control);


-struct cards card_list[] __devinitdata = {
+static struct cards card_list[] __devinitdata = {

{ 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" },
{ 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" },
--- linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/dst.c.old 2006-02-09 22:09:21.000000000 +0100
+++ linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/dst.c 2006-02-09 22:09:29.000000000 +0100
@@ -602,7 +602,7 @@

*/

-struct dst_types dst_tlist[] = {
+static struct dst_types dst_tlist[] = {
{
.device_id = "200103A",
.offset = 0,


2006-02-10 05:53:41

by Manu Abraham

[permalink] [raw]
Subject: Re: [2.6 patch] drivers/media/dvb/bt8xx/: make 2 structs static

Adrian Bunk wrote:
> This patch makes two needlessly global structs static.
>
>
> Signed-off-by: Adrian Bunk <[email protected]>
>
> ---
>
> drivers/media/dvb/bt8xx/bt878.c | 2 +-
> drivers/media/dvb/bt8xx/dst.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/bt878.c.old 2006-02-09 22:09:00.000000000 +0100
> +++ linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/bt878.c 2006-02-09 22:09:07.000000000 +0100
> @@ -382,7 +382,7 @@
> EXPORT_SYMBOL(bt878_device_control);
>
>
> -struct cards card_list[] __devinitdata = {
> +static struct cards card_list[] __devinitdata = {
>
> { 0x01010071, BTTV_BOARD_NEBULA_DIGITV, "Nebula Electronics DigiTV" },
> { 0x07611461, BTTV_BOARD_AVDVBT_761, "AverMedia AverTV DVB-T 761" },
> --- linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/dst.c.old 2006-02-09 22:09:21.000000000 +0100
> +++ linux-2.6.16-rc2-mm1-full/drivers/media/dvb/bt8xx/dst.c 2006-02-09 22:09:29.000000000 +0100
> @@ -602,7 +602,7 @@
>
> */
>
> -struct dst_types dst_tlist[] = {
> +static struct dst_types dst_tlist[] = {
> {
> .device_id = "200103A",
> .offset = 0,
>
> -
>


Ack'd-by: Manu Abraham <[email protected]>