This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
forked from CyanogenMod/android_kernel_sony_msm8974
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backlight: convert backlight i2c drivers to module_i2c_driver
Factor out some boilerplate code for i2c driver registration into module_i2c_driver. Signed-off-by: Axel Lin <[email protected]> Cc: Michael Hennerich <[email protected]> Cc: Dmitry Baryshkov <[email protected]> Cc: Richard Purdie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
3 changed files
with
3 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -819,17 +819,7 @@ static struct i2c_driver adp8860_driver = { | |
.id_table = adp8860_id, | ||
}; | ||
|
||
static int __init adp8860_init(void) | ||
{ | ||
return i2c_add_driver(&adp8860_driver); | ||
} | ||
module_init(adp8860_init); | ||
|
||
static void __exit adp8860_exit(void) | ||
{ | ||
i2c_del_driver(&adp8860_driver); | ||
} | ||
module_exit(adp8860_exit); | ||
module_i2c_driver(adp8860_driver); | ||
|
||
MODULE_LICENSE("GPL v2"); | ||
MODULE_AUTHOR("Michael Hennerich <[email protected]>"); | ||
|
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 |
---|---|---|
|
@@ -991,17 +991,7 @@ static struct i2c_driver adp8870_driver = { | |
.id_table = adp8870_id, | ||
}; | ||
|
||
static int __init adp8870_init(void) | ||
{ | ||
return i2c_add_driver(&adp8870_driver); | ||
} | ||
module_init(adp8870_init); | ||
|
||
static void __exit adp8870_exit(void) | ||
{ | ||
i2c_del_driver(&adp8870_driver); | ||
} | ||
module_exit(adp8870_exit); | ||
module_i2c_driver(adp8870_driver); | ||
|
||
MODULE_LICENSE("GPL v2"); | ||
MODULE_AUTHOR("Michael Hennerich <[email protected]>"); | ||
|
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