Commit 0857702b authored by Federico Vaga's avatar Federico Vaga

kernel: improve readability

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 170766f8
...@@ -184,7 +184,7 @@ static int ft_zio_conf_channel(struct device *dev, struct zio_attribute *zattr, ...@@ -184,7 +184,7 @@ static int ft_zio_conf_channel(struct device *dev, struct zio_attribute *zattr,
switch (zattr->id) { switch (zattr->id) {
case FT_ATTR_TDC_TERMINATION: case FT_ATTR_TDC_TERMINATION:
ft_enable_termination(ft, cset->index + 1, usr_val); ft_enable_termination(ft, cset->index + 1, usr_val);
return 0; break;
case FT_ATTR_TDC_USER_OFFSET: case FT_ATTR_TDC_USER_OFFSET:
user_offs = usr_val; user_offs = usr_val;
...@@ -194,15 +194,17 @@ static int ft_zio_conf_channel(struct device *dev, struct zio_attribute *zattr, ...@@ -194,15 +194,17 @@ static int ft_zio_conf_channel(struct device *dev, struct zio_attribute *zattr,
spin_lock(&ft->lock); spin_lock(&ft->lock);
st->user_offset = usr_val; st->user_offset = usr_val;
spin_unlock(&ft->lock); spin_unlock(&ft->lock);
return 0; break;
case FT_ATTR_TDC_DELAY_REF: case FT_ATTR_TDC_DELAY_REF:
if (usr_val > FT_NUM_CHANNELS) if (usr_val > FT_NUM_CHANNELS)
return -EINVAL; return -EINVAL;
st->delay_reference = usr_val; st->delay_reference = usr_val;
break; break;
default:
return -EINVAL;
} }
return -EINVAL; return 0;
} }
/* /*
......
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