/* Given a UWB device descriptor, validate and refcount it */
struct uwb_dev* uwb_dev_try_get(struct uwb_rc *rc, struct uwb_dev *uwb_dev)
/* Given a UWB device descriptor, validate and refcount it */
struct uwb_dev* uwb_dev_try_get(struct uwb_rc *rc, struct uwb_dev *uwb_dev)
{
	if (uwb_dev_for_each(rc, __uwb_dev_try_get, uwb_dev))
		return uwb_dev;
	else
		return NULL;
}