summaryrefslogtreecommitdiffstats
path: root/drivers/android
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-16 09:26:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-19 22:30:15 -0400
commit9246a4a98a01bafc017118bb2512d394d040fcbe (patch)
tree7dbfb91b1584125c86a46f53d649809625011b9b /drivers/android
parentbc2d62a01b336983b8abd1cb2337f305352f29ef (diff)
android: binder: remove binder.h
binder.h isn't needed to just include a uapi file and set a single define, so move it into binder.c to save a few lines of code. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binder.c6
-rw-r--r--drivers/android/binder.h30
2 files changed, 5 insertions, 31 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index c69c40d69d5c..8c43521d3f11 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -38,7 +38,11 @@
38#include <linux/slab.h> 38#include <linux/slab.h>
39#include <linux/pid_namespace.h> 39#include <linux/pid_namespace.h>
40 40
41#include "binder.h" 41#ifdef CONFIG_ANDROID_BINDER_IPC_32BIT
42#define BINDER_IPC_32BIT 1
43#endif
44
45#include <uapi/linux/android/binder.h>
42#include "binder_trace.h" 46#include "binder_trace.h"
43 47
44static DEFINE_MUTEX(binder_main_lock); 48static DEFINE_MUTEX(binder_main_lock);
diff --git a/drivers/android/binder.h b/drivers/android/binder.h
deleted file mode 100644
index 5dc6a66b0665..000000000000
--- a/drivers/android/binder.h
+++ /dev/null
@@ -1,30 +0,0 @@
1/*
2 * Copyright (C) 2008 Google, Inc.
3 *
4 * Based on, but no longer compatible with, the original
5 * OpenBinder.org binder driver interface, which is:
6 *
7 * Copyright (c) 2005 Palmsource, Inc.
8 *
9 * This software is licensed under the terms of the GNU General Public
10 * License version 2, as published by the Free Software Foundation, and
11 * may be copied, distributed, and modified under those terms.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 */
19
20#ifndef _LINUX_BINDER_H
21#define _LINUX_BINDER_H
22
23#ifdef CONFIG_ANDROID_BINDER_IPC_32BIT
24#define BINDER_IPC_32BIT 1
25#endif
26
27#include <uapi/linux/android/binder.h>
28
29#endif /* _LINUX_BINDER_H */
30