/* Get number of bytes in the device FIFO.  */
int32_t adpd410x_get_fifo_bytecount(struct adpd410x_dev *dev, uint16_t *bytes)
/* Get number of bytes in the device FIFO.  */
int32_t adpd410x_get_fifo_bytecount(struct adpd410x_dev *dev, uint16_t *bytes)
{
	int32_t ret;
	ret = adpd410x_reg_read(dev, ADPD410X_REG_FIFO_STATUS, bytes);
	if(ret != SUCCESS)
		return ret;
	*bytes &= BITM_INT_STATUS_FIFO_FIFO_BYTE_COUNT;
	return SUCCESS;
}