From e89886ac6546f059955baf5d1b4f8fb25041c578 Mon Sep 17 00:00:00 2001 From: Andre Guedes Date: Tue, 18 Dec 2012 11:41:20 -0300 Subject: [PATCH] hog: Refactor hog init and exit functions This patch simply renames hog_manager_init and hog_manager_exit functions to hog_init and hog_exit. --- profiles/input/hog_device.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c index 1b7616fde..4f5e99b54 100644 --- a/profiles/input/hog_device.c +++ b/profiles/input/hog_device.c @@ -874,7 +874,7 @@ static struct btd_profile hog_profile = { .device_remove = hog_device_remove, }; -static int hog_manager_init(void) +static int hog_init(void) { int err; @@ -887,7 +887,7 @@ static int hog_manager_init(void) return btd_profile_register(&hog_profile); } -static void hog_manager_exit(void) +static void hog_exit(void) { if (suspend_supported) suspend_exit(); @@ -895,15 +895,5 @@ static void hog_manager_exit(void) btd_profile_unregister(&hog_profile); } -static int hog_init(void) -{ - return hog_manager_init(); -} - -static void hog_exit(void) -{ - hog_manager_exit(); -} - BLUETOOTH_PLUGIN_DEFINE(hog, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, hog_init, hog_exit) -- 2.47.3