staging: comedi: make ni_tio_has_gate2_registers return boolean

This patch makes ni_tio_has_gate2_registers return boolean, since
this function only uses either one or zero as its return value.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Geliang Tang 2015-10-18 22:35:30 +08:00 committed by Greg Kroah-Hartman
parent c1ccdddc2e
commit abfe2196e0
1 changed files with 3 additions and 3 deletions

View File

@ -167,15 +167,15 @@ static inline unsigned GI_HW_ARM_SEL_MASK(enum ni_gpct_variant variant)
}
}
static int ni_tio_has_gate2_registers(const struct ni_gpct_device *counter_dev)
static bool ni_tio_has_gate2_registers(const struct ni_gpct_device *counter_dev)
{
switch (counter_dev->variant) {
case ni_gpct_variant_e_series:
default:
return 0;
return false;
case ni_gpct_variant_m_series:
case ni_gpct_variant_660x:
return 1;
return true;
}
}