aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-blaze-keypad.c
blob: 9af4e6feb856d17bc218ad5b099f7a47f2298993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * arch/arm/mach-omap2/board-blaze-keypad.c
 *
 * Copyright (C) 2011 Texas Instruments
 *
 * Author: Dan Murphy <DMurphy@TI.com>
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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.
 *
 */

#include <linux/gpio.h>
#include <linux/gpio_keys.h>
#include <linux/input.h>
#include <linux/leds.h>
#include <linux/platform_device.h>

#include <plat/omap4-keypad.h>

#include "board-blaze.h"
#include "mux.h"

static struct platform_device blaze_keypad_led = {
	.name	=	"keypad_led",
	.id	=	-1,
	.dev	= {
		.platform_data = NULL,
	},
};

static struct platform_device *blaze_led_devices[] __initdata = {
	&blaze_keypad_led,
};

int __init blaze_keypad_init(void)
{
	platform_add_devices(blaze_led_devices, ARRAY_SIZE(blaze_led_devices));

	return 0;
}