Commit 6c129be8 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman

[PATCH] i2c: Rename i2c-parport variable to avoid confusion

It's a bit confusing to name a variable the same as an unrelated
structure. The compiler doesn't complain, but it certainly makes the
code harder to understand, and could confuse grep and LXR among
others.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 30dac746
...@@ -232,7 +232,7 @@ static void i2c_parport_detach (struct parport *port) ...@@ -232,7 +232,7 @@ static void i2c_parport_detach (struct parport *port)
} }
} }
static struct parport_driver i2c_driver = { static struct parport_driver i2c_parport_driver = {
.name = "i2c-parport", .name = "i2c-parport",
.attach = i2c_parport_attach, .attach = i2c_parport_attach,
.detach = i2c_parport_detach, .detach = i2c_parport_detach,
...@@ -250,12 +250,12 @@ static int __init i2c_parport_init(void) ...@@ -250,12 +250,12 @@ static int __init i2c_parport_init(void)
type = 0; type = 0;
} }
return parport_register_driver(&i2c_driver); return parport_register_driver(&i2c_parport_driver);
} }
static void __exit i2c_parport_exit(void) static void __exit i2c_parport_exit(void)
{ {
parport_unregister_driver(&i2c_driver); parport_unregister_driver(&i2c_parport_driver);
} }
MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>"); MODULE_AUTHOR("Jean Delvare <khali@linux-fr.org>");
......
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