diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-11-22 13:56:19 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-26 06:15:18 -0500 |
commit | 32533983858f5f6899f39d54230d9640ef4547cd (patch) | |
tree | 40b3fdeda94e55b587e3ca3c7ab680ec352f7395 /drivers/mfd | |
parent | b20a43715e675815d0a426f05a7607ba099136aa (diff) |
mfd: stmpe-i2c: Move .driver structure fields inside {} in stmpe_i2c_driver
Currently, few fields in stmpe_i2c_driver are initialized as:
.driver.owner = THIS_MODULE,
Group them under {}, like:
.driver = {
.owner = THIS_MODULE,
...
},
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/stmpe-i2c.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index 947a06a1845f..c734dc33fbfd 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c | |||
@@ -82,11 +82,13 @@ static const struct i2c_device_id stmpe_i2c_id[] = { | |||
82 | MODULE_DEVICE_TABLE(i2c, stmpe_id); | 82 | MODULE_DEVICE_TABLE(i2c, stmpe_id); |
83 | 83 | ||
84 | static struct i2c_driver stmpe_i2c_driver = { | 84 | static struct i2c_driver stmpe_i2c_driver = { |
85 | .driver.name = "stmpe-i2c", | 85 | .driver = { |
86 | .driver.owner = THIS_MODULE, | 86 | .name = "stmpe-i2c", |
87 | .owner = THIS_MODULE, | ||
87 | #ifdef CONFIG_PM | 88 | #ifdef CONFIG_PM |
88 | .driver.pm = &stmpe_dev_pm_ops, | 89 | .pm = &stmpe_dev_pm_ops, |
89 | #endif | 90 | #endif |
91 | }, | ||
90 | .probe = stmpe_i2c_probe, | 92 | .probe = stmpe_i2c_probe, |
91 | .remove = __devexit_p(stmpe_i2c_remove), | 93 | .remove = __devexit_p(stmpe_i2c_remove), |
92 | .id_table = stmpe_i2c_id, | 94 | .id_table = stmpe_i2c_id, |