[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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
[email protected] 2005-07-27 12:43:03 -05:00 • committed by Greg Kroah-Hartman
commit a61fc683ae
2 changed files with 5 additions and 5 deletions

View file

@ -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)
{