Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11235
b: refs/heads/master
c: 495515b
h: refs/heads/master
i:
  11233: d4dc97c
  11231: 8f18da4
v: v3
  • Loading branch information
Ladislav Michl authored and Ralf Baechle committed Oct 29, 2005
1 parent d92955c commit b9d7bd4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80b47346b0c83edab5d183376b41e9968bd5ac32
refs/heads/master: 495515b351957e4f6155d1696132f53acc4d06e5
10 changes: 4 additions & 6 deletions trunk/drivers/media/video/indycam.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* published by the Free Software Foundation.
*/

#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/slab.h>

#include <linux/videodev.h>
/* IndyCam decodes stream of photons into digital image representation ;-) */
Expand All @@ -44,8 +44,6 @@ MODULE_LICENSE("GPL");
#define indycam_regdump(client)
#endif

#define VINO_ADAPTER (I2C_ALGO_SGI | I2C_HW_SGI_VINO)

struct indycam {
struct i2c_client *client;
int version;
Expand Down Expand Up @@ -300,7 +298,7 @@ static int indycam_attach(struct i2c_adapter *adap, int addr, int kind)
static int indycam_probe(struct i2c_adapter *adap)
{
/* Indy specific crap */
if (adap->id == VINO_ADAPTER)
if (adap->id == I2C_HW_SGI_VINO)
return indycam_attach(adap, INDYCAM_ADDR, 0);
/* Feel free to add probe here :-) */
return -ENODEV;
Expand Down
14 changes: 6 additions & 8 deletions trunk/drivers/media/video/saa7191.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* published by the Free Software Foundation.
*/

#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/slab.h>

#include <linux/videodev.h>
#include <linux/video_decoder.h>
Expand All @@ -33,8 +33,6 @@ MODULE_VERSION(SAA7191_MODULE_VERSION);
MODULE_AUTHOR("Mikael Nousiainen <tmnousia@cc.hut.fi>");
MODULE_LICENSE("GPL");

#define VINO_ADAPTER (I2C_ALGO_SGI | I2C_HW_SGI_VINO)

struct saa7191 {
struct i2c_client *client;

Expand Down Expand Up @@ -337,7 +335,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind)
static int saa7191_probe(struct i2c_adapter *adap)
{
/* Always connected to VINO */
if (adap->id == VINO_ADAPTER)
if (adap->id == I2C_HW_SGI_VINO)
return saa7191_attach(adap, SAA7191_ADDR, 0);
/* Feel free to add probe here :-) */
return -ENODEV;
Expand All @@ -364,7 +362,7 @@ static int saa7191_command(struct i2c_client *client, unsigned int cmd,

cap->flags = VIDEO_DECODER_PAL | VIDEO_DECODER_NTSC |
VIDEO_DECODER_SECAM | VIDEO_DECODER_AUTO;
cap->inputs = (client->adapter->id == VINO_ADAPTER) ? 2 : 1;
cap->inputs = (client->adapter->id == I2C_HW_SGI_VINO) ? 2 : 1;
cap->outputs = 1;
break;
}
Expand Down Expand Up @@ -422,7 +420,7 @@ static int saa7191_command(struct i2c_client *client, unsigned int cmd,
int *iarg = arg;

switch (client->adapter->id) {
case VINO_ADAPTER:
case I2C_HW_SGI_VINO:
return saa7191_set_input(client, *iarg);
default:
if (*iarg != 0)
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/media/video/vino.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/time.h>
#include <linux/moduleparam.h>
#include <linux/time.h>
#include <linux/version.h>

#ifdef CONFIG_KMOD
#include <linux/kmod.h>
Expand Down

0 comments on commit b9d7bd4

Please sign in to comment.