mirror of https://gitee.com/openkylin/linux.git
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:
parent
c1ccdddc2e
commit
abfe2196e0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue