/* Simple callback that copies response back into command.  */
int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra, struct cmd_header *resp)
/* Simple callback that copies response back into command.  */
int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra, struct cmd_header *resp)
{
	struct cmd_header *buf = (void *)extra;
	uint16_t copy_len;
	copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size));
	memcpy(buf, resp, copy_len);
	return 0;
}