@@ -13,25 +13,11 @@
#define __LINUX_FLASH_LEDS_H_INCLUDED
#include <linux/leds.h>
+#include <uapi/linux/leds.h>
struct device_node;
struct led_classdev_flash;
-/*
- * Supported led fault bits - must be kept in synch
- * with V4L2_FLASH_FAULT bits.
- */
-#define LED_FAULT_OVER_VOLTAGE (1 << 0)
-#define LED_FAULT_TIMEOUT (1 << 1)
-#define LED_FAULT_OVER_TEMPERATURE (1 << 2)
-#define LED_FAULT_SHORT_CIRCUIT (1 << 3)
-#define LED_FAULT_OVER_CURRENT (1 << 4)
-#define LED_FAULT_INDICATOR (1 << 5)
-#define LED_FAULT_UNDER_VOLTAGE (1 << 6)
-#define LED_FAULT_INPUT_VOLTAGE (1 << 7)
-#define LED_FAULT_LED_OVER_TEMPERATURE (1 << 8)
-#define LED_NUM_FLASH_FAULTS 9
-
#define LED_FLASH_SYSFS_GROUPS_SIZE 5
struct led_flash_ops {
new file mode 100644
@@ -0,0 +1,34 @@
+/*
+ * include/uapi/linux/leds.h
+ *
+ * LED subsystem specific definitions and declarations.
+ *
+ * Copyright (C) 2015 Samsung Electronics Co., Ltd.
+ * Author: Jacek Anaszewski <j.anaszewski@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * 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 __UAPI_LINUX_LEDS_H_
+#define __UAPI_LINUX_LEDS_H_
+
+#define LED_FAULT_OVER_VOLTAGE (1 << 0)
+#define LED_FAULT_TIMEOUT (1 << 1)
+#define LED_FAULT_OVER_TEMPERATURE (1 << 2)
+#define LED_FAULT_SHORT_CIRCUIT (1 << 3)
+#define LED_FAULT_OVER_CURRENT (1 << 4)
+#define LED_FAULT_INDICATOR (1 << 5)
+#define LED_FAULT_UNDER_VOLTAGE (1 << 6)
+#define LED_FAULT_INPUT_VOLTAGE (1 << 7)
+#define LED_FAULT_LED_OVER_TEMPERATURE (1 << 8)
+#define LED_NUM_FLASH_FAULTS 9
+
+#endif /* __UAPI_LINUX_LEDS_H_ */