Skip to content

Commit 1020839

Browse files
Wolfram Sanggroeck
authored andcommitted
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 <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent 262a3f6 commit 1020839

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

drivers/hwmon/isl28022.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ static struct i2c_driver isl28022_driver = {
506506
.id_table = isl28022_ids,
507507
};
508508

509-
static int __init
510-
isl28022_init(void)
509+
static int __init isl28022_init(void)
511510
{
512511
int err;
513512

@@ -519,15 +518,13 @@ isl28022_init(void)
519518
debugfs_remove_recursive(isl28022_debugfs_root);
520519
return err;
521520
}
521+
module_init(isl28022_init);
522522

523-
static void __exit
524-
isl28022_exit(void)
523+
static void __exit isl28022_exit(void)
525524
{
526525
i2c_del_driver(&isl28022_driver);
527526
debugfs_remove_recursive(isl28022_debugfs_root);
528527
}
529-
530-
module_init(isl28022_init);
531528
module_exit(isl28022_exit);
532529

533530
MODULE_AUTHOR("Carsten Spieß <[email protected]>");

0 commit comments

Comments
 (0)