Commit 783ae816 authored by Linus Torvalds's avatar Linus Torvalds

Fix video drivers for i2c 'name' move

parent c39d4913
...@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL"); ...@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(x) (x)->dev.name #define I2C_NAME(x) (x)->name
#include <linux/video_encoder.h> #include <linux/video_encoder.h>
......
...@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL"); ...@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(s) (s)->dev.name #define I2C_NAME(s) (s)->name
#include <linux/video_encoder.h> #include <linux/video_encoder.h>
......
...@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL"); ...@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(s) (s)->dev.name #define I2C_NAME(s) (s)->name
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
......
...@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL"); ...@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(s) (s)->dev.name #define I2C_NAME(s) (s)->name
#include <linux/video_encoder.h> #include <linux/video_encoder.h>
......
...@@ -42,7 +42,7 @@ MODULE_LICENSE("GPL"); ...@@ -42,7 +42,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(s) (s)->dev.name #define I2C_NAME(s) (s)->name
#include <linux/videodev.h> #include <linux/videodev.h>
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
......
...@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL"); ...@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(s) (s)->dev.name #define I2C_NAME(s) (s)->name
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
......
...@@ -61,7 +61,7 @@ MODULE_LICENSE("GPL"); ...@@ -61,7 +61,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(x) (x)->dev.name #define I2C_NAME(x) (x)->name
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
......
...@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL"); ...@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL");
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(s) (s)->dev.name #define I2C_NAME(s) (s)->name
#include <linux/video_encoder.h> #include <linux/video_encoder.h>
......
...@@ -291,7 +291,7 @@ static int tvmixer_clients(struct i2c_client *client) ...@@ -291,7 +291,7 @@ static int tvmixer_clients(struct i2c_client *client)
devices[i].count = 0; devices[i].count = 0;
devices[i].dev = client; devices[i].dev = client;
printk("tvmixer: %s (%s) registered with minor %d\n", printk("tvmixer: %s (%s) registered with minor %d\n",
client->dev.name,client->adapter->dev.name,minor); client->name,client->adapter->name,minor);
return 0; return 0;
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/i2c-dev.h> #include <linux/i2c-dev.h>
#define I2C_NAME(x) (x)->dev.name #define I2C_NAME(x) (x)->name
#include <linux/videodev.h> #include <linux/videodev.h>
#include <linux/video_decoder.h> #include <linux/video_decoder.h>
......
...@@ -146,11 +146,7 @@ Private IOCTL to set up for displaying MJPEG ...@@ -146,11 +146,7 @@ Private IOCTL to set up for displaying MJPEG
#define ZORAN_NAME "ZORAN" /* name of the device */ #define ZORAN_NAME "ZORAN" /* name of the device */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define ZR_DEVNAME(zr) pci_name((zr)->pci_dev)
#define ZR_DEVNAME(zr) (zr)->name
#else
#define ZR_DEVNAME(zr) (zr)->pci_dev->dev.name
#endif
#define BUZ_MAX_WIDTH (zr->timing->Wa) #define BUZ_MAX_WIDTH (zr->timing->Wa)
#define BUZ_MAX_HEIGHT (zr->timing->Ha) #define BUZ_MAX_HEIGHT (zr->timing->Ha)
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include "zoran_device.h" #include "zoran_device.h"
#include "zoran_procfs.h" #include "zoran_procfs.h"
#define I2C_NAME(x) (x)->dev.name #define I2C_NAME(x) (x)->name
extern const struct zoran_format zoran_formats[]; extern const struct zoran_format zoran_formats[];
extern const int zoran_num_formats; extern const int zoran_num_formats;
......
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