示例#1
0
static int sr130pc10_get_exif(int *exif_cmd, int *val)
{
	switch (*exif_cmd) {
	case EXIF_TV:
		(*val) = sr130pc10_exif_shutter_speed();
		break;

	case EXIF_ISO:
		(*val) = sr130pc10_exif_iso();
		break;

	default:
		printk(KERN_DEBUG
			"[%s:%d] invalid(%d)\n",
			__func__, __LINE__, *exif_cmd);
		break;
	}

	return 0;
}
static int sr130pc10_get_exif(unsigned short exif_cmd, unsigned short val)
{
	unsigned short retVal = 0;

	switch (exif_cmd) {
	case EXIF_SHUTTERSPEED:
		retVal = sr130pc10_exif_shutter_speed();
		break;

	case EXIF_ISO:
		retVal = sr130pc10_exif_iso();
		break;

	default:
		printk(KERN_DEBUG
			"[%s:%d] invalid(%d)\n",
			__func__, __LINE__, exif_cmd);
		break;
	}

	return retVal;
}