/* * et8ek8_driver.c * * Copyright (C) 2008 Nokia Corporation * * Contact: Sakari Ailus <sakari.ailus@iki.fi> * Tuukka Toivonen <tuukkat76@gmail.com> * Pavel Machek <pavel@ucw.cz> * * Based on code from Toni Leinonen <toni.leinonen@offcode.fi>. * * This driver is based on the Micron MT9T012 camera imager driver * (C) Texas Instruments. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */#include<linux/clk.h>#include<linux/delay.h>#include<linux/gpio/consumer.h>#include<linux/i2c.h>#include<linux/kernel.h>#include<linux/module.h>#include<linux/mutex.h>#include<linux/regulator/consumer.h>#include<linux/slab.h>#include<linux/sort.h>#include<linux/v4l2-mediabus.h>#include<media/media-entity.h>#include<media/v4l2-ctrls.h>#include<media/v4l2-device.h>#include<media/v4l2-subdev.h>#include"et8ek8_reg.h"#define ET8EK8_NAME "et8ek8"#define ET8EK8_PRIV_MEM_SIZE 128#define ET8EK8_MAX_MSG 48structet8ek8_sensor{structv4l2_subdevsubdev