Commit 32533983 authored by Viresh Kumar's avatar Viresh Kumar Committed by Samuel Ortiz

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent b20a4371
...@@ -82,11 +82,13 @@ static const struct i2c_device_id stmpe_i2c_id[] = { ...@@ -82,11 +82,13 @@ static const struct i2c_device_id stmpe_i2c_id[] = {
MODULE_DEVICE_TABLE(i2c, stmpe_id); MODULE_DEVICE_TABLE(i2c, stmpe_id);
static struct i2c_driver stmpe_i2c_driver = { static struct i2c_driver stmpe_i2c_driver = {
.driver.name = "stmpe-i2c", .driver = {
.driver.owner = THIS_MODULE, .name = "stmpe-i2c",
.owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.driver.pm = &stmpe_dev_pm_ops, .pm = &stmpe_dev_pm_ops,
#endif #endif
},
.probe = stmpe_i2c_probe, .probe = stmpe_i2c_probe,
.remove = __devexit_p(stmpe_i2c_remove), .remove = __devexit_p(stmpe_i2c_remove),
.id_table = stmpe_i2c_id, .id_table = stmpe_i2c_id,
......
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