summaryrefslogtreecommitdiffstats
path: root/src/fw.c
diff options
context:
space:
mode:
authorGravatar Stefan Richter 2010-06-20 19:02:53 +0200
committerGravatar Stefan Richter 2010-09-07 11:26:58 +0200
commit3fc1f00be39abe13d603f020d3f257c62d9f97ea (patch)
tree35205e78d9a8d959bbe19b99c7ab82d94c3b9e95 /src/fw.c
parentDo not use a random FW_CDEV_VERSION as our implemented ABI version (diff)
Rename a few kernel ABI testing helpers
Use more uniform names along the lines of abi_has_some_feature(...). Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to '')
-rw-r--r--src/fw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fw.c b/src/fw.c
index df825c9..5f5bc69 100644
--- a/src/fw.c
+++ b/src/fw.c
@@ -1445,7 +1445,7 @@ iso_resource_modify(raw1394handle_t handle, unsigned int bandwidth,
return 0;
}
-static inline int abi_v2_available(raw1394handle_t handle)
+static inline int abi_has_iso_resource_management(raw1394handle_t handle)
{
return handle->mode.fw->abi_version >= 2;
}
@@ -1459,7 +1459,7 @@ iso_resource_modify(raw1394handle_t handle, unsigned int bandwidth,
return -1;
}
-static inline int abi_v2_available(raw1394handle_t handle)
+static inline int abi_has_iso_resource_management(raw1394handle_t handle)
{
return 0;
}
@@ -1470,7 +1470,7 @@ int
fw_bandwidth_modify(raw1394handle_t handle, unsigned int bandwidth,
enum raw1394_modify_mode mode)
{
- if (abi_v2_available(handle))
+ if (abi_has_iso_resource_management(handle))
return iso_resource_modify(handle, bandwidth, -1, mode);
else
return ieee1394_bandwidth_modify(handle, bandwidth, mode);
@@ -1480,7 +1480,7 @@ int
fw_channel_modify(raw1394handle_t handle, unsigned int channel,
enum raw1394_modify_mode mode)
{
- if (abi_v2_available(handle))
+ if (abi_has_iso_resource_management(handle))
return iso_resource_modify(handle, 0, channel, mode);
else
return ieee1394_channel_modify(handle, channel, mode);