diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2012-10-09 13:19:52 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-09 17:56:11 +0200 |
commit | b37495e622e9721f9e27842c4928782c28e66cf9 (patch) | |
tree | 2307c7e52bb824eb7002a1a5d3f30c721bd48e2f /profiles | |
parent | 2f32a908688b7ffad3db4373b3f3eb833f1f0352 (diff) |
thermometer: Update driver naming style
This patch changes device probe and remove functions name to include
'device' rather than 'driver' name as it better describes what both
do.
Also profile driver name is changed to better describe that it's now
profile driver rather than device driver only.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/thermometer/manager.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/profiles/thermometer/manager.c b/profiles/thermometer/manager.c index 86e3a0f9..60576333 100644 --- a/profiles/thermometer/manager.c +++ b/profiles/thermometer/manager.c @@ -41,7 +41,7 @@ static gint primary_uuid_cmp(gconstpointer a, gconstpointer b) return g_strcmp0(prim->uuid, uuid); } -static int thermometer_driver_probe(struct btd_profile *p, +static int thermometer_device_probe(struct btd_profile *p, struct btd_device *device, GSList *uuids) { @@ -60,7 +60,7 @@ static int thermometer_driver_probe(struct btd_profile *p, return thermometer_register(device, tattr); } -static void thermometer_driver_remove(struct btd_profile *p, +static void thermometer_device_remove(struct btd_profile *p, struct btd_device *device) { thermometer_unregister(device); @@ -79,10 +79,10 @@ static void thermometer_adapter_remove(struct btd_profile *p, } static struct btd_profile thermometer_profile = { - .name = "thermometer-device-driver", + .name = "Health Thermometer GATT driver", .remote_uuids = BTD_UUIDS(HEALTH_THERMOMETER_UUID), - .device_probe = thermometer_driver_probe, - .device_remove = thermometer_driver_remove, + .device_probe = thermometer_device_probe, + .device_remove = thermometer_device_remove, .adapter_probe = thermometer_adapter_probe, .adapter_remove = thermometer_adapter_remove }; |