/* Separate data from status in case they are read together. */
static int32_t cn0414_filter_status(struct cn0414_dev *dev, uint32_t data_status, uint32_t *data_only)
/* Separate data from status in case they are read together. */
static int32_t cn0414_filter_status(struct cn0414_dev *dev, uint32_t data_status, uint32_t *data_only)
{
	ad717x_st_reg *reg;
	AD717X_ReadRegister(dev->ad4111_device, AD717X_IFMODE_REG);
	reg = AD717X_GetReg(dev->ad4111_device, AD717X_IFMODE_REG);
	if(!reg)
		return -1;
	*data_only = data_status >> 8;
	if(reg->value & AD717X_IFMODE_REG_DATA_WL16)
		*data_only &= 0xffff;
	else
		*data_only &= 0xffffff;
	return 0;
}