Commit 495515b3 authored by Ladislav Michl's avatar Ladislav Michl Committed by Ralf Baechle

Let it compile again after i2c algo id removal. Sort headers.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 80b47346
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/major.h> #include <linux/major.h>
#include <linux/slab.h> #include <linux/module.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h>
#include <linux/videodev.h> #include <linux/videodev.h>
/* IndyCam decodes stream of photons into digital image representation ;-) */ /* IndyCam decodes stream of photons into digital image representation ;-) */
...@@ -44,8 +44,6 @@ MODULE_LICENSE("GPL"); ...@@ -44,8 +44,6 @@ MODULE_LICENSE("GPL");
#define indycam_regdump(client) #define indycam_regdump(client)
#endif #endif
#define VINO_ADAPTER (I2C_ALGO_SGI | I2C_HW_SGI_VINO)
struct indycam { struct indycam {
struct i2c_client *client; struct i2c_client *client;
int version; int version;
...@@ -300,7 +298,7 @@ static int indycam_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -300,7 +298,7 @@ static int indycam_attach(struct i2c_adapter *adap, int addr, int kind)
static int indycam_probe(struct i2c_adapter *adap) static int indycam_probe(struct i2c_adapter *adap)
{ {
/* Indy specific crap */ /* Indy specific crap */
if (adap->id == VINO_ADAPTER) if (adap->id == I2C_HW_SGI_VINO)
return indycam_attach(adap, INDYCAM_ADDR, 0); return indycam_attach(adap, INDYCAM_ADDR, 0);
/* Feel free to add probe here :-) */ /* Feel free to add probe here :-) */
return -ENODEV; return -ENODEV;
......
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
* published by the Free Software Foundation. * published by the Free Software Foundation.
*/ */
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/major.h> #include <linux/major.h>
#include <linux/slab.h> #include <linux/module.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h>
#include <linux/videodev.h> #include <linux/videodev.h>
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
...@@ -33,8 +33,6 @@ MODULE_VERSION(SAA7191_MODULE_VERSION); ...@@ -33,8 +33,6 @@ MODULE_VERSION(SAA7191_MODULE_VERSION);
MODULE_AUTHOR("Mikael Nousiainen <tmnousia@cc.hut.fi>"); MODULE_AUTHOR("Mikael Nousiainen <tmnousia@cc.hut.fi>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
#define VINO_ADAPTER (I2C_ALGO_SGI | I2C_HW_SGI_VINO)
struct saa7191 { struct saa7191 {
struct i2c_client *client; struct i2c_client *client;
...@@ -337,7 +335,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -337,7 +335,7 @@ static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind)
static int saa7191_probe(struct i2c_adapter *adap) static int saa7191_probe(struct i2c_adapter *adap)
{ {
/* Always connected to VINO */ /* Always connected to VINO */
if (adap->id == VINO_ADAPTER) if (adap->id == I2C_HW_SGI_VINO)
return saa7191_attach(adap, SAA7191_ADDR, 0); return saa7191_attach(adap, SAA7191_ADDR, 0);
/* Feel free to add probe here :-) */ /* Feel free to add probe here :-) */
return -ENODEV; return -ENODEV;
...@@ -364,7 +362,7 @@ static int saa7191_command(struct i2c_client *client, unsigned int cmd, ...@@ -364,7 +362,7 @@ static int saa7191_command(struct i2c_client *client, unsigned int cmd,
cap->flags = VIDEO_DECODER_PAL | VIDEO_DECODER_NTSC | cap->flags = VIDEO_DECODER_PAL | VIDEO_DECODER_NTSC |
VIDEO_DECODER_SECAM | VIDEO_DECODER_AUTO; 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; cap->outputs = 1;
break; break;
} }
...@@ -422,7 +420,7 @@ static int saa7191_command(struct i2c_client *client, unsigned int cmd, ...@@ -422,7 +420,7 @@ static int saa7191_command(struct i2c_client *client, unsigned int cmd,
int *iarg = arg; int *iarg = arg;
switch (client->adapter->id) { switch (client->adapter->id) {
case VINO_ADAPTER: case I2C_HW_SGI_VINO:
return saa7191_set_input(client, *iarg); return saa7191_set_input(client, *iarg);
default: default:
if (*iarg != 0) if (*iarg != 0)
......
...@@ -26,14 +26,15 @@ ...@@ -26,14 +26,15 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/time.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/time.h>
#include <linux/version.h>
#ifdef CONFIG_KMOD #ifdef CONFIG_KMOD
#include <linux/kmod.h> #include <linux/kmod.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment