From: Andre Guedes <andre.guedes@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 6/8] hog: Rename hog_device_free
Date: Tue, 18 Dec 2012 15:49:48 -0300 [thread overview]
Message-ID: <1355856590-19222-6-git-send-email-andre.guedes@openbossa.org> (raw)
In-Reply-To: <1355856590-19222-1-git-send-email-andre.guedes@openbossa.org>
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
next prev parent reply other threads:[~2012-12-18 18:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 18:49 [PATCH BlueZ 1/8] hog: Rename hog_device.c file to hog.c Andre Guedes
2012-12-18 18:49 ` [PATCH BlueZ 2/8] hog: Rename hog_device_probe Andre Guedes
2012-12-18 18:49 ` [PATCH BlueZ 3/8] hog: Rename hog_device_remove Andre Guedes
2012-12-18 18:49 ` [PATCH BlueZ 4/8] hog: Rename hog_device_set_control_point Andre Guedes
2012-12-18 18:49 ` [PATCH BlueZ 5/8] hog: Rename hog_device_new Andre Guedes
2012-12-18 18:49 ` Andre Guedes [this message]
2012-12-18 18:49 ` [PATCH BlueZ 7/8] hog: Rename hog_device_register Andre Guedes
2012-12-18 18:49 ` [PATCH BlueZ 8/8] hog: Rename hog_device_unregister Andre Guedes
2012-12-18 20:13 ` Anderson Lizardo
2012-12-19 13:38 ` Andre Guedes
2012-12-19 13:42 ` Andre Guedes
2012-12-19 22:01 ` Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1355856590-19222-6-git-send-email-andre.guedes@openbossa.org \
--to=andre.guedes@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox