Commit 445ee122 authored by Adam Wujek's avatar Adam Wujek

sw:lib: add const to a parameter of fmctdc_set_time

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent fd33f19c
......@@ -861,7 +861,7 @@ int fmctdc_fread(struct fmctdc_board *userb, unsigned int channel,
* @param[in] t time-stamp
* @return 0 on success, otherwise -1 and errno is set
*/
int fmctdc_set_time(struct fmctdc_board *userb, struct fmctdc_time *t)
int fmctdc_set_time(struct fmctdc_board *userb, const struct fmctdc_time *t)
{
__define_board(b, userb);
uint32_t attrs[ARRAY_SIZE(names)];
......
......@@ -141,7 +141,7 @@ extern void fmctdc_exit(void);
* Set of function to configure TDC board and retrieve information
* about the current status
*/
extern int fmctdc_set_time(struct fmctdc_board *b, struct fmctdc_time *t);
extern int fmctdc_set_time(struct fmctdc_board *b, const struct fmctdc_time *t);
extern int fmctdc_get_time(struct fmctdc_board *b, struct fmctdc_time *t);
extern int fmctdc_set_host_time(struct fmctdc_board *b);
extern int fmctdc_wr_mode(struct fmctdc_board *b, int on);
......
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