diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2024-11-20 09:33:52 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-12-14 08:00:44 -0800 |
commit | 10208399dbe0967880ed32ec43f663f644fde36e (patch) | |
tree | 0df36094e508e4ca30bb171c292f353e360848f1 | |
parent | 262a3f6ea8f11aaf27571712a0f983cbea874278 (diff) |
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>
-rw-r--r-- | drivers/hwmon/isl28022.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/hwmon/isl28022.c b/drivers/hwmon/isl28022.c index f9edcfd164c2..7748f6b8a534 100644 --- a/drivers/hwmon/isl28022.c +++ b/drivers/hwmon/isl28022.c @@ -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>"); |