summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorbgardner@wabtec.com <bgardner@wabtec.com>2005-07-27 19:43:03 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 18:14:05 +0200
commita61fc683ae1b7871d8d81ac5025af1a923731547 (patch)
tree8b141faa2d84653075b6baea18e64e7302345cbd /drivers/i2c
parent[PATCH] I2C: cleanup of i2c-nforce2 (diff)
downloadlinux-a61fc683ae1b7871d8d81ac5025af1a923731547.tar.xz
linux-a61fc683ae1b7871d8d81ac5025af1a923731547.zip
[PATCH] I2C: add kobj_to_i2c_client
Move the inline function kobj_to_i2c_client() from max6875.c to i2c.h. Signed-off-by: Ben Gardner <bgardner@wabtec.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/chips/max6875.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/i2c/chips/max6875.c b/drivers/i2c/chips/max6875.c
index 1a7993e63541..35a8e9215294 100644
--- a/drivers/i2c/chips/max6875.c
+++ b/drivers/i2c/chips/max6875.c
@@ -131,11 +131,6 @@ exit_up:
up(&data->update_lock);
}
-static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj)
-{
- return to_i2c_client(container_of(kobj, struct device, kobj));
-}
-
static ssize_t max6875_read(struct kobject *kobj, char *buf, loff_t off,
size_t count)
{