blob: c778565818cf82e6b49337df7a9fabfd6f352e17 [file] [log] [blame]
/*
* arch/arm/mach-ambarella/dropcam-adc.c
*
* Copyright (C) 2012-2014, Dropcam, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#include <linux/string.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <mach/init-dropcam.h>
static unsigned int hw_rev_adc_val;
static int __init dropcam_hw_rev_adc_val(char *options)
{
return kstrtouint(options, 0, &hw_rev_adc_val);
}
__setup("hw_rev_adc_val=", dropcam_hw_rev_adc_val);
unsigned int dropcam_get_hw_rev_adc_val()
{
return hw_rev_adc_val;
}