diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/arch/arm/mach-pxa/csb701.c | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/arch/arm/mach-pxa/csb701.c')
-rw-r--r-- | ANDROID_3.4.5/arch/arm/mach-pxa/csb701.c | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/ANDROID_3.4.5/arch/arm/mach-pxa/csb701.c b/ANDROID_3.4.5/arch/arm/mach-pxa/csb701.c deleted file mode 100644 index 5a221a49..00000000 --- a/ANDROID_3.4.5/arch/arm/mach-pxa/csb701.c +++ /dev/null @@ -1,66 +0,0 @@ -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/platform_device.h> -#include <linux/gpio_keys.h> -#include <linux/input.h> -#include <linux/leds.h> - -#include <asm/mach-types.h> - -static struct gpio_keys_button csb701_buttons[] = { - { - .code = 0x7, - .gpio = 1, - .active_low = 1, - .desc = "SW2", - .type = EV_SW, - .wakeup = 1, - }, -}; - -static struct gpio_keys_platform_data csb701_gpio_keys_data = { - .buttons = csb701_buttons, - .nbuttons = ARRAY_SIZE(csb701_buttons), -}; - -static struct gpio_led csb701_leds[] = { - { - .name = "csb701:yellow:heartbeat", - .default_trigger = "heartbeat", - .gpio = 11, - .active_low = 1, - }, -}; - -static struct platform_device csb701_gpio_keys = { - .name = "gpio-keys", - .id = -1, - .dev.platform_data = &csb701_gpio_keys_data, -}; - -static struct gpio_led_platform_data csb701_leds_gpio_data = { - .leds = csb701_leds, - .num_leds = ARRAY_SIZE(csb701_leds), -}; - -static struct platform_device csb701_leds_gpio = { - .name = "leds-gpio", - .id = -1, - .dev.platform_data = &csb701_leds_gpio_data, -}; - -static struct platform_device *devices[] __initdata = { - &csb701_gpio_keys, - &csb701_leds_gpio, -}; - -static int __init csb701_init(void) -{ - if (!machine_is_csb726()) - return -ENODEV; - - return platform_add_devices(devices, ARRAY_SIZE(devices)); -} - -module_init(csb701_init); - |