Commit f325ff3d authored by Federico Vaga's avatar Federico Vaga

lib: fix english

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9f93a998
......@@ -536,15 +536,15 @@ int fmctdc_get_buffer_len(struct fmctdc_board *userb, unsigned int channel)
}
/**
* The function set the buffer lenght
* The function set the buffer length
* @param[in] userb TDC board instance token
* @param[in] channel to use
* @param[in] lenght maximum number of timestamps to store
* @param[in] length maximum number of timestamps to store
* @return 0 on success, otherwise a negative errno code is set
* appropriately
*/
int fmctdc_set_buffer_len(struct fmctdc_board *userb, unsigned int channel,
unsigned int lenght)
unsigned int length)
{
__define_board(b, userb);
uint32_t val;
......@@ -557,7 +557,7 @@ int fmctdc_set_buffer_len(struct fmctdc_board *userb, unsigned int channel,
snprintf(attr, sizeof(attr), "ft-ch%d/chan0/buffer/max-buffer-len", channel + 1);
val = lenght;
val = length;
return fmctdc_sysfs_set(b, attr, &val);
}
......@@ -1127,7 +1127,6 @@ int fmctdc_coalescing_timeout_get(struct fmctdc_board *userb,
* @param[in] channel target channel [0, 4]
* @param[in] mode time-stamp mode
* @return 0 on success, otherwise -1 and errno is set appropriately
*
*/
int fmctdc_ts_mode_set(struct fmctdc_board *userb,
unsigned int channel,
......
......@@ -147,7 +147,7 @@ extern int fmctdc_get_buffer_len(struct fmctdc_board *userb,
unsigned int channel);
extern int fmctdc_set_buffer_len(struct fmctdc_board *userb,
unsigned int channel,
unsigned int lenght);
unsigned int length);
extern int fmctdc_reference_set(struct fmctdc_board *userb,
unsigned int ch_target, int ch_reference);
extern int fmctdc_reference_get(struct fmctdc_board *userb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment