From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/media/sprd_sensor/otp/Makefile | 6 + drivers/media/sprd_sensor/otp/sensor_otp.c | 23 ++ drivers/media/sprd_sensor/otp/sensor_otp.h | 18 ++ .../sprd_sensor/otp/sensor_otp_coreprime3g_ve.c | 268 +++++++++++++++++++++ 4 files changed, 315 insertions(+) create mode 100644 drivers/media/sprd_sensor/otp/Makefile create mode 100644 drivers/media/sprd_sensor/otp/sensor_otp.c create mode 100644 drivers/media/sprd_sensor/otp/sensor_otp.h create mode 100644 drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c (limited to 'drivers/media/sprd_sensor/otp') diff --git a/drivers/media/sprd_sensor/otp/Makefile b/drivers/media/sprd_sensor/otp/Makefile new file mode 100644 index 00000000..17f91f11 --- /dev/null +++ b/drivers/media/sprd_sensor/otp/Makefile @@ -0,0 +1,6 @@ + +ifeq ($(CONFIG_MACH_GRANDPRIME3G_VE),y) +obj-y += sensor_otp_coreprime3g_ve.o +else +obj-y += sensor_otp.o +endif diff --git a/drivers/media/sprd_sensor/otp/sensor_otp.c b/drivers/media/sprd_sensor/otp/sensor_otp.c new file mode 100644 index 00000000..53075776 --- /dev/null +++ b/drivers/media/sprd_sensor/otp/sensor_otp.c @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2012 Spreadtrum Communications Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * 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 +#include +#include