From 62b2c9b844a616d0088f0f68cada2a007f9d346f Mon Sep 17 00:00:00 2001
From: Arun Muthusamy <arun.muthusamy@inteno.se>
Date: Tue, 5 Jun 2018 10:17:40 +0200
Subject: [PATCH] rm policy enum from .c to .h file

---
 dongle_infrastructure.c | 4 ----
 dongle_infrastructure.h | 6 ++++++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dongle_infrastructure.c b/dongle_infrastructure.c
index 1f8d5a6..188759b 100644
--- a/dongle_infrastructure.c
+++ b/dongle_infrastructure.c
@@ -35,10 +35,6 @@ void free_device(struct device *dev);
 void free_usb(struct USB *usb);
 struct device *search_list(char *name);
 
-enum {
-	DEV,
-	__DEV_MAX
-};
 
 const struct blobmsg_policy dev_policy[__DEV_MAX] = {
 	[DEV] = {.name = "dev", .type = BLOBMSG_TYPE_STRING},
diff --git a/dongle_infrastructure.h b/dongle_infrastructure.h
index 5302f70..fc86897 100644
--- a/dongle_infrastructure.h
+++ b/dongle_infrastructure.h
@@ -38,6 +38,12 @@ enum {
 
 //dongle_network enum(None)..
 
+//dongle_infrastructure
+enum {
+	DEV,
+	__DEV_MAX
+};
+
 
 struct USB {
 	char *product;
-- 
GitLab