forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'auxdisplay-for-linus-v5.15-rc1' of git://github.com/ojeda/…
…linux Pull auxdisplay updates from Miguel Ojeda: "An assortment of improvements for auxdisplay: - Replace symbolic permissions with octal permissions (Jinchao Wang) - ks0108: Switch to use module_parport_driver() (Andy Shevchenko) - charlcd: Drop unneeded initializers and switch to C99 style (Andy Shevchenko) - hd44780: Fix oops on module unloading (Lars Poeschel) - Add I2C gpio expander example (Ralf Schlatterbeck)" * tag 'auxdisplay-for-linus-v5.15-rc1' of git://github.com/ojeda/linux: auxdisplay: Replace symbolic permissions with octal permissions auxdisplay: ks0108: Switch to use module_parport_driver() auxdisplay: charlcd: Drop unneeded initializers and switch to C99 style auxdisplay: hd44780: Fix oops on module unloading auxdisplay: Add I2C gpio expander example
- Loading branch information
Showing
5 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,11 +28,11 @@ | |
*/ | ||
|
||
static unsigned int ks0108_port = CONFIG_KS0108_PORT; | ||
module_param(ks0108_port, uint, S_IRUGO); | ||
module_param(ks0108_port, uint, 0444); | ||
MODULE_PARM_DESC(ks0108_port, "Parallel port where the LCD is connected"); | ||
|
||
static unsigned int ks0108_delay = CONFIG_KS0108_DELAY; | ||
module_param(ks0108_delay, uint, S_IRUGO); | ||
module_param(ks0108_delay, uint, 0444); | ||
MODULE_PARM_DESC(ks0108_delay, "Delay between each control writing (microseconds)"); | ||
|
||
/* | ||
|
@@ -167,19 +167,7 @@ static struct parport_driver ks0108_parport_driver = { | |
.detach = ks0108_parport_detach, | ||
.devmodel = true, | ||
}; | ||
|
||
static int __init ks0108_init(void) | ||
{ | ||
return parport_register_driver(&ks0108_parport_driver); | ||
} | ||
|
||
static void __exit ks0108_exit(void) | ||
{ | ||
parport_unregister_driver(&ks0108_parport_driver); | ||
} | ||
|
||
module_init(ks0108_init); | ||
module_exit(ks0108_exit); | ||
module_parport_driver(ks0108_parport_driver); | ||
|
||
MODULE_LICENSE("GPL v2"); | ||
MODULE_AUTHOR("Miguel Ojeda <[email protected]>"); | ||
|