mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 09:12:07 +00:00
hwmon: (isl28022) apply coding style to module init/exit
Function declarations can be in one line. module_init|exit macros should be tied to the function. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
262a3f6ea8
commit
10208399db
@ -506,8 +506,7 @@ static struct i2c_driver isl28022_driver = {
|
||||
.id_table = isl28022_ids,
|
||||
};
|
||||
|
||||
static int __init
|
||||
isl28022_init(void)
|
||||
static int __init isl28022_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
@ -519,15 +518,13 @@ isl28022_init(void)
|
||||
debugfs_remove_recursive(isl28022_debugfs_root);
|
||||
return err;
|
||||
}
|
||||
module_init(isl28022_init);
|
||||
|
||||
static void __exit
|
||||
isl28022_exit(void)
|
||||
static void __exit isl28022_exit(void)
|
||||
{
|
||||
i2c_del_driver(&isl28022_driver);
|
||||
debugfs_remove_recursive(isl28022_debugfs_root);
|
||||
}
|
||||
|
||||
module_init(isl28022_init);
|
||||
module_exit(isl28022_exit);
|
||||
|
||||
MODULE_AUTHOR("Carsten Spieß <mail@carsten-spiess.de>");
|
||||
|
Loading…
Reference in New Issue
Block a user