equal
deleted
inserted
replaced
316 return 1; |
316 return 1; |
317 } |
317 } |
318 |
318 |
319 /*****************************************************************************/ |
319 /*****************************************************************************/ |
320 |
320 |
321 /** Finds a Pdo with the given index. |
321 /** Finds a Pdo with the given index and returns a const pointer. |
322 */ |
322 */ |
323 const ec_pdo_t *ec_pdo_mapping_find_pdo( |
323 const ec_pdo_t *ec_pdo_mapping_find_pdo_const( |
324 const ec_pdo_mapping_t *pm, /**< Pdo mapping. */ |
324 const ec_pdo_mapping_t *pm, /**< Pdo mapping. */ |
325 uint16_t index /**< Pdo index. */ |
325 uint16_t index /**< Pdo index. */ |
326 ) |
326 ) |
327 { |
327 { |
328 ec_pdo_t *pdo; |
328 const ec_pdo_t *pdo; |
329 |
329 |
330 list_for_each_entry(pdo, &pm->pdos, list) { |
330 list_for_each_entry(pdo, &pm->pdos, list) { |
331 if (pdo->index != index) |
331 if (pdo->index != index) |
332 continue; |
332 continue; |
333 return pdo; |
333 return pdo; |