__near_tag_get_idx function wasn't needed as the same action was
performed by near_tag_get_target_idx.
return -ENOLINK;
tag_type = __near_tag_get_type(adapter->tag_link);
- target_idx = __near_tag_get_idx(adapter->tag_link);
+ target_idx = near_tag_get_target_idx(adapter->tag_link);
DBG("tag type %d", tag_type);
DBG("req %p cb %p data %p", req, cb, data);
- req->target_idx = __near_tag_get_idx(adapter->tag_link);
+ req->target_idx = near_tag_get_target_idx(adapter->tag_link);
req->cb = cb;
req->data = data;
uint8_t *nfcid, uint8_t nfcid_len);
void __near_tag_remove(struct near_tag *tag);
const char *__near_tag_get_path(struct near_tag *tag);
-uint32_t __near_tag_get_idx(struct near_tag *tag);
uint32_t __near_tag_get_type(struct near_tag *tag);
void __near_tag_append_records(struct near_tag *tag, DBusMessageIter *iter);
int __near_tag_read(struct near_tag *tag, near_tag_io_cb cb);
return tag->path;
}
-
-uint32_t __near_tag_get_idx(struct near_tag *tag)
-{
- return tag->target_idx;
-}
-
uint32_t __near_tag_get_type(struct near_tag *tag)
{
return tag->type;