Commit b64962e9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] I2C: fix some errors found by sparse in include/linux/i2c.h

parent e7aba607
...@@ -176,7 +176,7 @@ static inline void *i2c_get_clientdata (struct i2c_client *dev) ...@@ -176,7 +176,7 @@ static inline void *i2c_get_clientdata (struct i2c_client *dev)
static inline void i2c_set_clientdata (struct i2c_client *dev, void *data) static inline void i2c_set_clientdata (struct i2c_client *dev, void *data)
{ {
return dev_set_drvdata (&dev->dev, data); dev_set_drvdata (&dev->dev, data);
} }
#define I2C_DEVNAME(str) .dev = { .name = str } #define I2C_DEVNAME(str) .dev = { .name = str }
...@@ -261,7 +261,7 @@ static inline void *i2c_get_adapdata (struct i2c_adapter *dev) ...@@ -261,7 +261,7 @@ static inline void *i2c_get_adapdata (struct i2c_adapter *dev)
static inline void i2c_set_adapdata (struct i2c_adapter *dev, void *data) static inline void i2c_set_adapdata (struct i2c_adapter *dev, void *data)
{ {
return dev_set_drvdata (&dev->dev, data); dev_set_drvdata (&dev->dev, data);
} }
/*flags for the driver struct: */ /*flags for the driver struct: */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment