aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2008-12-23 10:28:02 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 16:52:43 -0500
commit653d1290be3bb04688514bec92c11eb6b7c324a7 (patch)
tree0fec14f71d8d04b838fd079130d1f59b46dc50f7 /drivers
parent99f41131b8d82cde1a84fec5b93ce31632552f0b (diff)
Staging: android: timed_gpio: Rename android_timed_gpio to timed_gpio
Signed-off-by: Mike Lockwood <lockwood@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/android/timed_gpio.c30
-rw-r--r--drivers/staging/android/timed_gpio.h (renamed from drivers/staging/android/android_timed_gpio.h)6
2 files changed, 18 insertions, 18 deletions
diff --git a/drivers/staging/android/timed_gpio.c b/drivers/staging/android/timed_gpio.c
index faaead1a7124..bea68c9fc942 100644
--- a/drivers/staging/android/timed_gpio.c
+++ b/drivers/staging/android/timed_gpio.c
@@ -1,4 +1,4 @@
1/* drivers/android/timed_gpio.c 1/* drivers/misc/timed_gpio.c
2 * 2 *
3 * Copyright (C) 2008 Google, Inc. 3 * Copyright (C) 2008 Google, Inc.
4 * Author: Mike Lockwood <lockwood@android.com> 4 * Author: Mike Lockwood <lockwood@android.com>
@@ -20,7 +20,7 @@
20#include <linux/err.h> 20#include <linux/err.h>
21#include <asm/arch/gpio.h> 21#include <asm/arch/gpio.h>
22 22
23#include "android_timed_gpio.h" 23#include "timed_gpio.h"
24 24
25 25
26static struct class *timed_gpio_class; 26static struct class *timed_gpio_class;
@@ -88,7 +88,7 @@ static ssize_t gpio_enable_store(
88 88
89static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, gpio_enable_show, gpio_enable_store); 89static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, gpio_enable_show, gpio_enable_store);
90 90
91static int android_timed_gpio_probe(struct platform_device *pdev) 91static int timed_gpio_probe(struct platform_device *pdev)
92{ 92{
93 struct timed_gpio_platform_data *pdata = pdev->dev.platform_data; 93 struct timed_gpio_platform_data *pdata = pdev->dev.platform_data;
94 struct timed_gpio *cur_gpio; 94 struct timed_gpio *cur_gpio;
@@ -130,7 +130,7 @@ static int android_timed_gpio_probe(struct platform_device *pdev)
130 return 0; 130 return 0;
131} 131}
132 132
133static int android_timed_gpio_remove(struct platform_device *pdev) 133static int timed_gpio_remove(struct platform_device *pdev)
134{ 134{
135 struct timed_gpio_platform_data *pdata = pdev->dev.platform_data; 135 struct timed_gpio_platform_data *pdata = pdev->dev.platform_data;
136 struct timed_gpio_data *gpio_data = platform_get_drvdata(pdev); 136 struct timed_gpio_data *gpio_data = platform_get_drvdata(pdev);
@@ -146,32 +146,32 @@ static int android_timed_gpio_remove(struct platform_device *pdev)
146 return 0; 146 return 0;
147} 147}
148 148
149static struct platform_driver android_timed_gpio_driver = { 149static struct platform_driver timed_gpio_driver = {
150 .probe = android_timed_gpio_probe, 150 .probe = timed_gpio_probe,
151 .remove = android_timed_gpio_remove, 151 .remove = timed_gpio_remove,
152 .driver = { 152 .driver = {
153 .name = "android-timed-gpio", 153 .name = "timed-gpio",
154 .owner = THIS_MODULE, 154 .owner = THIS_MODULE,
155 }, 155 },
156}; 156};
157 157
158static int __init android_timed_gpio_init(void) 158static int __init timed_gpio_init(void)
159{ 159{
160 timed_gpio_class = class_create(THIS_MODULE, "timed_output"); 160 timed_gpio_class = class_create(THIS_MODULE, "timed_output");
161 if (IS_ERR(timed_gpio_class)) 161 if (IS_ERR(timed_gpio_class))
162 return PTR_ERR(timed_gpio_class); 162 return PTR_ERR(timed_gpio_class);
163 return platform_driver_register(&android_timed_gpio_driver); 163 return platform_driver_register(&timed_gpio_driver);
164} 164}
165 165
166static void __exit android_timed_gpio_exit(void) 166static void __exit timed_gpio_exit(void)
167{ 167{
168 class_destroy(timed_gpio_class); 168 class_destroy(timed_gpio_class);
169 platform_driver_unregister(&android_timed_gpio_driver); 169 platform_driver_unregister(&timed_gpio_driver);
170} 170}
171 171
172module_init(android_timed_gpio_init); 172module_init(timed_gpio_init);
173module_exit(android_timed_gpio_exit); 173module_exit(timed_gpio_exit);
174 174
175MODULE_AUTHOR("Mike Lockwood <lockwood@android.com>"); 175MODULE_AUTHOR("Mike Lockwood <lockwood@android.com>");
176MODULE_DESCRIPTION("Android timed gpio driver"); 176MODULE_DESCRIPTION("timed gpio driver");
177MODULE_LICENSE("GPL"); 177MODULE_LICENSE("GPL");
diff --git a/drivers/staging/android/android_timed_gpio.h b/drivers/staging/android/timed_gpio.h
index a38a96c2b378..78449b2161cf 100644
--- a/drivers/staging/android/android_timed_gpio.h
+++ b/drivers/staging/android/timed_gpio.h
@@ -1,4 +1,4 @@
1/* include/linux/android_timed_gpio.h 1/* include/linux/timed_gpio.h
2 * 2 *
3 * Copyright (C) 2008 Google, Inc. 3 * Copyright (C) 2008 Google, Inc.
4 * 4 *
@@ -13,8 +13,8 @@
13 * 13 *
14*/ 14*/
15 15
16#ifndef _LINUX_ANDROID_TIMED_GPIO_H 16#ifndef _LINUX_TIMED_GPIO_H
17#define _LINUX_ANDROID_TIMED_GPIO_H 17#define _LINUX_TIMED_GPIO_H
18 18
19struct timed_gpio { 19struct timed_gpio {
20 const char *name; 20 const char *name;