Example #1
0
int gl_reg_read(unsigned int reg)
{
	int retval;
	retval = gl_write_address(reg);
	if (retval < 0)
		return retval;
	retval = gl_read_data();
	return retval;
}
Example #2
0
int gl_reg_read(libusb_device_handle *devh, unsigned int reg)
{
	int ret;

	ret = gl_write_address(devh, reg);
	if (ret < 0)
		return ret;
	ret = gl_read_data(devh);
	return ret;
}