Skip to content

Commit

Permalink
staging: easycap: remove redunant headers
Browse files Browse the repository at this point in the history
place all globals to easycap.h, which is included
by all c-files
easycap_standard: fix declaration vs. definiton conflict

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Jan 24, 2011
1 parent d9e2d59 commit b4f63e9
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 224 deletions.
19 changes: 19 additions & 0 deletions drivers/staging/easycap/easycap.h
Original file line number Diff line number Diff line change
Expand Up @@ -727,4 +727,23 @@ extern int easycap_debug;
} while (0)
/*---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------*/
/* globals
*/
/*---------------------------------------------------------------------------*/

extern const struct easycap_standard easycap_standard[];
extern struct easycap_format easycap_format[];
extern struct v4l2_queryctrl easycap_control[];
extern struct usb_driver easycap_usb_driver;
extern struct easycap_dongle easycapdc60_dongle[];
#if defined(EASYCAP_NEEDS_ALSA)
extern struct snd_pcm_ops easycap_alsa_ops;
extern struct snd_pcm_hardware easycap_pcm_hardware;
extern struct snd_card *psnd_card;
#else
extern struct usb_class_driver easyoss_class;
extern const struct file_operations easyoss_fops;
#endif /*EASYCAP_NEEDS_ALSA*/

#endif /*EASYCAP_H*/
1 change: 0 additions & 1 deletion drivers/staging/easycap/easycap_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#include <linux/smp_lock.h>
#include "easycap.h"
#include "easycap_ioctl.h"

/*--------------------------------------------------------------------------*/
/*
Expand Down
35 changes: 0 additions & 35 deletions drivers/staging/easycap/easycap_ioctl.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/easycap/easycap_low.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
/****************************************************************************/

#include "easycap.h"
#include "easycap_low.h"

/*--------------------------------------------------------------------------*/
static const struct stk1160config {
Expand Down
32 changes: 0 additions & 32 deletions drivers/staging/easycap/easycap_low.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/easycap/easycap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/*****************************************************************************/

#include "easycap.h"
#include "easycap_main.h"

int easycap_debug;
static int easycap_bars = 1;
Expand Down
44 changes: 0 additions & 44 deletions drivers/staging/easycap/easycap_main.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/easycap/easycap_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/*****************************************************************************/

#include "easycap.h"
#include "easycap_settings.h"

/*---------------------------------------------------------------------------*/
/*
Expand Down
35 changes: 0 additions & 35 deletions drivers/staging/easycap/easycap_settings.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/easycap/easycap_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/*****************************************************************************/

#include "easycap.h"
#include "easycap_sound.h"

#if defined(EASYCAP_NEEDS_ALSA)
/*--------------------------------------------------------------------------*/
Expand Down
40 changes: 0 additions & 40 deletions drivers/staging/easycap/easycap_sound.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/easycap/easycap_testcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/*****************************************************************************/

#include "easycap.h"
#include "easycap_testcard.h"

/*****************************************************************************/
#define TESTCARD_BYTESPERLINE (2 * 720)
Expand Down
32 changes: 0 additions & 32 deletions drivers/staging/easycap/easycap_testcard.h

This file was deleted.

0 comments on commit b4f63e9

Please sign in to comment.