summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnthony Felice <tony.felice@timesys.com>2013-10-04 16:58:49 -0400
committerAnthony Felice <tony.felice@timesys.com>2013-10-04 16:58:49 -0400
commit20d898ca48df4b87609c3903fb37505f0bb54537 (patch)
tree16812c033a58b68306dd4e204524ff27fe8f2a4b /include
parent57a25827428efb7e8cc2eb6e59c529b5093a98e5 (diff)
Add mvf_sema4.h to header install list and allow to be included
outside of the kernel.
Diffstat (limited to 'include')
-rw-r--r--include/linux/Kbuild1
-rw-r--r--include/linux/mvf_sema4.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 947d36f054e5..d2505e354e0c 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -36,6 +36,7 @@ header-y += mxc_sim_interface.h
header-y += mxc_v4l2.h
header-y += mxcfb.h
header-y += mvf-fb.h
+header-y += mvf_sema4.h
header-y += pmic_adc.h
header-y += pmic_battery.h
header-y += pmic_external.h
diff --git a/include/linux/mvf_sema4.h b/include/linux/mvf_sema4.h
index 198f3f249ec5..4e94276396de 100644
--- a/include/linux/mvf_sema4.h
+++ b/include/linux/mvf_sema4.h
@@ -9,6 +9,8 @@
#define MVF_RESERVED1_SEMAPHORE_NUMBER (4)
#define MVF_RESERVED2_SEMAPHORE_NUMBER (5)
+#ifdef __KERNEL__
+
typedef struct mvf_sema4_handle_struct {
int gate_num;
wait_queue_head_t wait_queue;
@@ -28,3 +30,4 @@ int mvf_sema4_unlock(MVF_SEMA4 *sema4);
int mvf_sema4_test(MVF_SEMA4 *sema4);
#endif
+#endif