diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-15 14:16:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-15 14:16:05 -0400 |
commit | dc221eae08eea3b0db127d1f152fac24d10b6a52 (patch) | |
tree | eea4cc64f2568db6aea94b9491120525ebcd738f /drivers/i2c/i2c-dev.c | |
parent | 98339cbd360b77c3167db287fd611468c2c44559 (diff) | |
parent | 4735c98f8447acb1c8977e2b8024640f7bf36dd6 (diff) |
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6: (56 commits)
i2c: Add detection capability to new-style drivers
i2c: Call client_unregister for new-style devices too
i2c: Clean up old chip drivers
i2c-ibm_iic: Register child nodes
i2c: New-style EEPROM driver using device IDs
i2c: Export the i2c_bus_type symbol
i2c-au1550: Fix PM support
i2c-dev: Delete empty detach_client callback
i2c: Drop stray references to lm_sensors
i2c: Check for ACPI resource conflicts
i2c-ocores: basic PM support
i2c-sibyte: SWARM I2C board initialization
i2c-i801: Fix handling of error conditions
i2c-i801: Rename local variable temp to status
i2c-i801: Properly report bus arbitration loss
i2c-i801: Remove verbose debugging messages
i2c-algo-pcf: Drop unused struct members
i2c-algo-pcf: Multi-master lost-arbitration improvement
i2c: Deprecate the legacy gpio drivers
i2c-pxa: Initialize early
...
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index 006a5857256a..86727fa8858f 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c | |||
@@ -367,8 +367,7 @@ static noinline int i2cdev_ioctl_smbus(struct i2c_client *client, | |||
367 | return res; | 367 | return res; |
368 | } | 368 | } |
369 | 369 | ||
370 | static int i2cdev_ioctl(struct inode *inode, struct file *file, | 370 | static long i2cdev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) |
371 | unsigned int cmd, unsigned long arg) | ||
372 | { | 371 | { |
373 | struct i2c_client *client = (struct i2c_client *)file->private_data; | 372 | struct i2c_client *client = (struct i2c_client *)file->private_data; |
374 | unsigned long funcs; | 373 | unsigned long funcs; |
@@ -497,7 +496,7 @@ static const struct file_operations i2cdev_fops = { | |||
497 | .llseek = no_llseek, | 496 | .llseek = no_llseek, |
498 | .read = i2cdev_read, | 497 | .read = i2cdev_read, |
499 | .write = i2cdev_write, | 498 | .write = i2cdev_write, |
500 | .ioctl = i2cdev_ioctl, | 499 | .unlocked_ioctl = i2cdev_ioctl, |
501 | .open = i2cdev_open, | 500 | .open = i2cdev_open, |
502 | .release = i2cdev_release, | 501 | .release = i2cdev_release, |
503 | }; | 502 | }; |
@@ -559,19 +558,12 @@ static int i2cdev_detach_adapter(struct i2c_adapter *adap) | |||
559 | return 0; | 558 | return 0; |
560 | } | 559 | } |
561 | 560 | ||
562 | static int i2cdev_detach_client(struct i2c_client *client) | ||
563 | { | ||
564 | return 0; | ||
565 | } | ||
566 | |||
567 | static struct i2c_driver i2cdev_driver = { | 561 | static struct i2c_driver i2cdev_driver = { |
568 | .driver = { | 562 | .driver = { |
569 | .name = "dev_driver", | 563 | .name = "dev_driver", |
570 | }, | 564 | }, |
571 | .id = I2C_DRIVERID_I2CDEV, | ||
572 | .attach_adapter = i2cdev_attach_adapter, | 565 | .attach_adapter = i2cdev_attach_adapter, |
573 | .detach_adapter = i2cdev_detach_adapter, | 566 | .detach_adapter = i2cdev_detach_adapter, |
574 | .detach_client = i2cdev_detach_client, | ||
575 | }; | 567 | }; |
576 | 568 | ||
577 | /* ------------------------------------------------------------------------- */ | 569 | /* ------------------------------------------------------------------------- */ |