diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-12-28 15:16:02 -0800 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-01-06 17:08:28 +0530 |
commit | 494a7b66ad5fc814b1344dd105d9f2dfad20a191 (patch) | |
tree | ce857ed43915288600864c8338fd27ae1ad1f95b /arch/arm/mach-tegra/tegra3_tsensor.h | |
parent | d5023aa5162f11dca7f8c8bf07cd868ea8fd7112 (diff) |
ARM: tegra: Clean up tsensor includes
mach-tegra/tegra3_tsensor.h is used for the parameterized initialization
of the tsensor device. mach-tegra/include/mach/tsensor.h is used for the
tsensor device driver.
Really, mach-tegra/tegra3_tsensor.c should go away - probably becoming a
device driver.
Change-Id: I16edae878f1e97d1654252cfee49cd9dd7f77db7
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/72481
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_tsensor.h')
-rw-r--r-- | arch/arm/mach-tegra/tegra3_tsensor.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra3_tsensor.h b/arch/arm/mach-tegra/tegra3_tsensor.h new file mode 100644 index 000000000000..d6bd1182fa6f --- /dev/null +++ b/arch/arm/mach-tegra/tegra3_tsensor.h @@ -0,0 +1,40 @@ +/* + * arch/arm/mach-tegra/tegra3_tsensor.h + * + * Tegra tsensor header file + * + * Copyright (c) 2011, NVIDIA Corporation. + * + * 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. + * + */ + +#ifndef __MACH_TEGRA_TEGRA3_TSENSOR_H +#define __MACH_TEGRA_TEGRA3_TSENSOR_H + +struct tegra_tsensor_pmu_data { + u8 poweroff_reg_data; + u8 poweroff_reg_addr; + u8 reset_tegra; + u8 controller_type; + u8 i2c_controller_id; + u8 pinmux; + u8 pmu_16bit_ops; + u8 pmu_i2c_addr; +}; + +#ifdef CONFIG_SENSORS_TEGRA_TSENSOR +void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data); +#else +static inline void tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data) +{} +#endif + +#endif |