diff options
author | Laurent Riffard <laurent.riffard@free.fr> | 2005-11-26 14:43:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-06 01:16:23 -0500 |
commit | 604f28e2b8d34cbaf08f0351374645f161335a82 (patch) | |
tree | 0f9183994b4fafa6ac58ce8e090fb8e2bf4869dd /drivers/media/video/msp3400.c | |
parent | a33ca23231a37e28d15da9546b1f3e83dc48284b (diff) |
[PATCH] i2c: Drop i2c_driver.{owner,name}, 5 of 11
We should use the i2c_driver.driver's .name and .owner fields
instead of the i2c_driver's ones.
This patch updates the drivers/media/video and usb/media drivers.
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media/video/msp3400.c')
-rw-r--r-- | drivers/media/video/msp3400.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c index c5e8ad3aac4a..3847d890d632 100644 --- a/drivers/media/video/msp3400.c +++ b/drivers/media/video/msp3400.c | |||
@@ -59,7 +59,8 @@ | |||
59 | #define msp3400_dbg(fmt, arg...) \ | 59 | #define msp3400_dbg(fmt, arg...) \ |
60 | do { \ | 60 | do { \ |
61 | if (debug) \ | 61 | if (debug) \ |
62 | printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \ | 62 | printk(KERN_INFO "%s debug %d-%04x: " fmt, \ |
63 | client->driver->driver.name, \ | ||
63 | i2c_adapter_id(client->adapter), client->addr , ## arg); \ | 64 | i2c_adapter_id(client->adapter), client->addr , ## arg); \ |
64 | } while (0) | 65 | } while (0) |
65 | 66 | ||
@@ -67,7 +68,8 @@ | |||
67 | #define msp3400_dbg_mediumvol(fmt, arg...) \ | 68 | #define msp3400_dbg_mediumvol(fmt, arg...) \ |
68 | do { \ | 69 | do { \ |
69 | if (debug >= 2) \ | 70 | if (debug >= 2) \ |
70 | printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \ | 71 | printk(KERN_INFO "%s debug %d-%04x: " fmt, \ |
72 | client->driver->driver.name, \ | ||
71 | i2c_adapter_id(client->adapter), client->addr , ## arg); \ | 73 | i2c_adapter_id(client->adapter), client->addr , ## arg); \ |
72 | } while (0) | 74 | } while (0) |
73 | 75 | ||
@@ -75,18 +77,19 @@ | |||
75 | #define msp3400_dbg_highvol(fmt, arg...) \ | 77 | #define msp3400_dbg_highvol(fmt, arg...) \ |
76 | do { \ | 78 | do { \ |
77 | if (debug >= 16) \ | 79 | if (debug >= 16) \ |
78 | printk(KERN_INFO "%s debug %d-%04x: " fmt, client->driver->name, \ | 80 | printk(KERN_INFO "%s debug %d-%04x: " fmt, \ |
81 | client->driver->driver.name, \ | ||
79 | i2c_adapter_id(client->adapter), client->addr , ## arg); \ | 82 | i2c_adapter_id(client->adapter), client->addr , ## arg); \ |
80 | } while (0) | 83 | } while (0) |
81 | 84 | ||
82 | #define msp3400_err(fmt, arg...) do { \ | 85 | #define msp3400_err(fmt, arg...) do { \ |
83 | printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->name, \ | 86 | printk(KERN_ERR "%s %d-%04x: " fmt, client->driver->driver.name, \ |
84 | i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0) | 87 | i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0) |
85 | #define msp3400_warn(fmt, arg...) do { \ | 88 | #define msp3400_warn(fmt, arg...) do { \ |
86 | printk(KERN_WARNING "%s %d-%04x: " fmt, client->driver->name, \ | 89 | printk(KERN_WARNING "%s %d-%04x: " fmt, client->driver->driver.name, \ |
87 | i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0) | 90 | i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0) |
88 | #define msp3400_info(fmt, arg...) do { \ | 91 | #define msp3400_info(fmt, arg...) do { \ |
89 | printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->name, \ | 92 | printk(KERN_INFO "%s %d-%04x: " fmt, client->driver->driver.name, \ |
90 | i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0) | 93 | i2c_adapter_id(client->adapter), client->addr , ## arg); } while (0) |
91 | 94 | ||
92 | #define OPMODE_AUTO -1 | 95 | #define OPMODE_AUTO -1 |
@@ -1561,13 +1564,13 @@ static int msp_resume(struct device * dev); | |||
1561 | static void msp_wake_thread(struct i2c_client *client); | 1564 | static void msp_wake_thread(struct i2c_client *client); |
1562 | 1565 | ||
1563 | static struct i2c_driver driver = { | 1566 | static struct i2c_driver driver = { |
1564 | .owner = THIS_MODULE, | ||
1565 | .name = "msp3400", | ||
1566 | .id = I2C_DRIVERID_MSP3400, | 1567 | .id = I2C_DRIVERID_MSP3400, |
1567 | .attach_adapter = msp_probe, | 1568 | .attach_adapter = msp_probe, |
1568 | .detach_client = msp_detach, | 1569 | .detach_client = msp_detach, |
1569 | .command = msp_command, | 1570 | .command = msp_command, |
1570 | .driver = { | 1571 | .driver = { |
1572 | .owner = THIS_MODULE, | ||
1573 | .name = "i2c msp3400 driver", | ||
1571 | .suspend = msp_suspend, | 1574 | .suspend = msp_suspend, |
1572 | .resume = msp_resume, | 1575 | .resume = msp_resume, |
1573 | }, | 1576 | }, |