/* The function finds chipid from specific list according to ul_id.  */
static bool chipid_find(const chipidtype_t *p_cid_types, uint32_t ul_size, uint32_t ul_id, chipidtype_t *p_cid_type)
/* The function finds chipid from specific list according to ul_id.  */
static bool chipid_find(const chipidtype_t *p_cid_types, uint32_t ul_size, uint32_t ul_id, chipidtype_t *p_cid_type)
{
	uint32_t ul_counter;
	for (ul_counter = 0; ul_counter < ul_size; ul_counter++) {
		if (p_cid_types[ul_counter].num == ul_id) {
			memcpy(p_cid_type, &p_cid_types[ul_counter], sizeof(chipidtype_t));
			return true;
		}
	}
	return false;
}