summaryrefslogtreecommitdiffstats
path: root/led/led_trout.c
diff options
context:
space:
mode:
Diffstat (limited to 'led/led_trout.c')
-rw-r--r--led/led_trout.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/led/led_trout.c b/led/led_trout.c
index 847b6bc..99d6bb0 100644
--- a/led/led_trout.c
+++ b/led/led_trout.c
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2008 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
#include <hardware/led.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -38,7 +53,7 @@ write_string(const char* file, const char* string, int len)
return amt >= 0 ? 0 : errno;
}
-int set_led_state(unsigned colorARGB, int onMS, int offMS)
+int trout_set_led_state(unsigned colorARGB, int onMS, int offMS)
{
int len;
char buf[30];