From 44ac7886e9ff45e98fec93bd80d41a33d0904177 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Thu, 12 Jul 2007 14:12:28 +0200 Subject: [PATCH] --- yaml --- r: 58806 b: refs/heads/master c: d75d53cd571c02990d56e72f615ab11e943772f9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/i2c.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index aa198616a6ec..1df368c65a22 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d64f73be1b59b9556de0a8fbd4f1a003c6a45a5c +refs/heads/master: d75d53cd571c02990d56e72f615ab11e943772f9 diff --git a/trunk/include/linux/i2c.h b/trunk/include/linux/i2c.h index a24e267fd189..44f2ecf47d9f 100644 --- a/trunk/include/linux/i2c.h +++ b/trunk/include/linux/i2c.h @@ -185,7 +185,8 @@ struct i2c_client { static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) { - return to_i2c_client(container_of(kobj, struct device, kobj)); + struct device * const dev = container_of(kobj, struct device, kobj); + return to_i2c_client(dev); } static inline void *i2c_get_clientdata (struct i2c_client *dev)