diff options
author | Mike Lockwood <lockwood@android.com> | 2008-12-23 10:28:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-06 16:52:43 -0500 |
commit | 653d1290be3bb04688514bec92c11eb6b7c324a7 (patch) | |
tree | 0fec14f71d8d04b838fd079130d1f59b46dc50f7 /drivers | |
parent | 99f41131b8d82cde1a84fec5b93ce31632552f0b (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.c | 30 | ||||
-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 | ||
26 | static struct class *timed_gpio_class; | 26 | static struct class *timed_gpio_class; |
@@ -88,7 +88,7 @@ static ssize_t gpio_enable_store( | |||
88 | 88 | ||
89 | static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, gpio_enable_show, gpio_enable_store); | 89 | static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, gpio_enable_show, gpio_enable_store); |
90 | 90 | ||
91 | static int android_timed_gpio_probe(struct platform_device *pdev) | 91 | static 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 | ||
133 | static int android_timed_gpio_remove(struct platform_device *pdev) | 133 | static 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 | ||
149 | static struct platform_driver android_timed_gpio_driver = { | 149 | static 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 | ||
158 | static int __init android_timed_gpio_init(void) | 158 | static 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 | ||
166 | static void __exit android_timed_gpio_exit(void) | 166 | static 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 | ||
172 | module_init(android_timed_gpio_init); | 172 | module_init(timed_gpio_init); |
173 | module_exit(android_timed_gpio_exit); | 173 | module_exit(timed_gpio_exit); |
174 | 174 | ||
175 | MODULE_AUTHOR("Mike Lockwood <lockwood@android.com>"); | 175 | MODULE_AUTHOR("Mike Lockwood <lockwood@android.com>"); |
176 | MODULE_DESCRIPTION("Android timed gpio driver"); | 176 | MODULE_DESCRIPTION("timed gpio driver"); |
177 | MODULE_LICENSE("GPL"); | 177 | MODULE_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 | ||
19 | struct timed_gpio { | 19 | struct timed_gpio { |
20 | const char *name; | 20 | const char *name; |