Commit 11e3377b authored by Guenter Roeck's avatar Guenter Roeck

hwmon: (lm83) Move lm83_id to avoid forward declaration

There is no need to keep lm83_id at the end of the driver. Move it
forward to where it is needed to avoid a forward declaration.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7c68c2c7
...@@ -317,7 +317,12 @@ static int lm83_detect(struct i2c_client *new_client, ...@@ -317,7 +317,12 @@ static int lm83_detect(struct i2c_client *new_client,
return 0; return 0;
} }
static const struct i2c_device_id lm83_id[]; static const struct i2c_device_id lm83_id[] = {
{ "lm83", lm83 },
{ "lm82", lm82 },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm83_id);
static int lm83_probe(struct i2c_client *new_client) static int lm83_probe(struct i2c_client *new_client)
{ {
...@@ -352,13 +357,6 @@ static int lm83_probe(struct i2c_client *new_client) ...@@ -352,13 +357,6 @@ static int lm83_probe(struct i2c_client *new_client)
* Driver data (common to all clients) * Driver data (common to all clients)
*/ */
static const struct i2c_device_id lm83_id[] = {
{ "lm83", lm83 },
{ "lm82", lm82 },
{ }
};
MODULE_DEVICE_TABLE(i2c, lm83_id);
static struct i2c_driver lm83_driver = { static struct i2c_driver lm83_driver = {
.class = I2C_CLASS_HWMON, .class = I2C_CLASS_HWMON,
.driver = { .driver = {
......
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