master/pdo_mapping.c
changeset 844 8839ba8bfeb4
parent 842 40e27e5a8dce
equal deleted inserted replaced
843:b6bddb663755 844:8839ba8bfeb4
   120  * \retval >0 Pointer to new Pdo.
   120  * \retval >0 Pointer to new Pdo.
   121  * \retval NULL No memory.
   121  * \retval NULL No memory.
   122  */
   122  */
   123 ec_pdo_t *ec_pdo_mapping_add_pdo(
   123 ec_pdo_t *ec_pdo_mapping_add_pdo(
   124         ec_pdo_mapping_t *pm, /**< Pdo mapping. */
   124         ec_pdo_mapping_t *pm, /**< Pdo mapping. */
   125         uint16_t index, /**< Pdo index. */
   125         ec_direction_t dir, /**< Direction. */
   126         ec_direction_t dir /**< Direction. */
   126         uint16_t index /**< Pdo index. */
   127         )
   127         )
   128 {
   128 {
   129     ec_pdo_t *pdo;
   129     ec_pdo_t *pdo;
   130 
   130 
   131     if (!(pdo = (ec_pdo_t *) kmalloc(sizeof(ec_pdo_t), GFP_KERNEL))) {
   131     if (!(pdo = (ec_pdo_t *) kmalloc(sizeof(ec_pdo_t), GFP_KERNEL))) {