[PATCH BlueZ 6/8] hog: Rename hog_device_free

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch renames hog_device_free function to hog_free_device.
---
 profiles/input/hog.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index c68a089..8d8f804 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
@@ -707,7 +707,7 @@ static void report_free(void *data)
 	g_free(report);
 }
 
-static void hog_device_free(struct hog_device *hogdev)
+static void hog_free_device(struct hog_device *hogdev)
 {
 	btd_device_unref(hogdev->device);
 	g_slist_free_full(hogdev->reports, report_free);
@@ -731,7 +731,7 @@ static struct hog_device *hog_device_register(struct btd_device *device,
 	if (hogdev->uhid_fd < 0) {
 		error("Failed to open uHID device: %s(%d)", strerror(errno),
 									errno);
-		hog_device_free(hogdev);
+		hog_free_device(hogdev);
 		return NULL;
 	}
 
@@ -772,7 +772,7 @@ static int hog_device_unregister(struct hog_device *hogdev)
 	close(hogdev->uhid_fd);
 	hogdev->uhid_fd = -1;
 
-	hog_device_free(hogdev);
+	hog_free_device(hogdev);
 
 	return 0;
 }
-- 
1.8.0.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux