/* __check_latch - Check a port latch for a given value. Returns zero if the port contains the given value. Callers must hold hdaps_mtx.  */
static int __check_latch(u16 port, u8 val)
/* __check_latch - Check a port latch for a given value. Returns zero if the port contains the given value. Callers must hold hdaps_mtx.  */
static int __check_latch(u16 port, u8 val)
{
	if (__get_latch(port) == val)
		return 0;
	return -EINVAL;
}