hwmon: epm_adc: Add kernel header
The userspace clients require only the result structure
Other structures releated to PSoC is not required
currently. Move the kernel header to avoid userspace
compliation errors.
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Change-Id: I93d319be4431f7e43c4bcbb27e4db9cc961dcc1b
diff --git a/include/linux/epm_adc.h b/include/linux/epm_adc.h
index b7b7d90..ca1a425 100644
--- a/include/linux/epm_adc.h
+++ b/include/linux/epm_adc.h
@@ -13,6 +13,7 @@
int32_t physical;
};
+#ifdef __KERNEL__
struct epm_psoc_init_resp {
u8 cmd;
u8 version;
@@ -91,7 +92,6 @@
uint32_t vadc_voltage;
};
-#ifdef __KERNEL__
struct epm_chan_properties {
uint32_t resistorvalue;
uint32_t gain;