summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mockup.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-11-27 13:48:37 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-12-03 00:42:23 +0300
commitf3b47170e048478a61063194d74fa72ffad716fc (patch)
treebdf695ec5effdbc5a5f31cf1c8ce33b7bb460b1e /drivers/gpio/gpio-mockup.c
parent539340f37e6d6ed4cd93e8e18c9b2e4eafd4b842 (diff)
downloadlinux-f3b47170e048478a61063194d74fa72ffad716fc.tar.xz
gpio: mockup: add missing prefixes
Add the gpio_mockup_ prefix to the remaining symbols that still don't have it, so that the entire driver code is consistent. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-mockup.c')
-rw-r--r--drivers/gpio/gpio-mockup.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
index 9532d86a82f7..d21c6d651287 100644
--- a/drivers/gpio/gpio-mockup.c
+++ b/drivers/gpio/gpio-mockup.c
@@ -327,8 +327,9 @@ static struct platform_driver gpio_mockup_driver = {
.probe = gpio_mockup_probe,
};
-static struct platform_device *pdev;
-static int __init mock_device_init(void)
+static struct platform_device *gpio_mockup_pdev;
+
+static int __init gpio_mockup_init(void)
{
int err;
@@ -337,34 +338,34 @@ static int __init mock_device_init(void)
pr_err("%s: error creating debugfs directory\n",
GPIO_MOCKUP_NAME);
- pdev = platform_device_alloc(GPIO_MOCKUP_NAME, -1);
- if (!pdev)
+ gpio_mockup_pdev = platform_device_alloc(GPIO_MOCKUP_NAME, -1);
+ if (!gpio_mockup_pdev)
return -ENOMEM;
- err = platform_device_add(pdev);
+ err = platform_device_add(gpio_mockup_pdev);
if (err) {
- platform_device_put(pdev);
+ platform_device_put(gpio_mockup_pdev);
return err;
}
err = platform_driver_register(&gpio_mockup_driver);
if (err) {
- platform_device_unregister(pdev);
+ platform_device_unregister(gpio_mockup_pdev);
return err;
}
return 0;
}
-static void __exit mock_device_exit(void)
+static void __exit gpio_mockup_exit(void)
{
debugfs_remove_recursive(gpio_mockup_dbg_dir);
platform_driver_unregister(&gpio_mockup_driver);
- platform_device_unregister(pdev);
+ platform_device_unregister(gpio_mockup_pdev);
}
-module_init(mock_device_init);
-module_exit(mock_device_exit);
+module_init(gpio_mockup_init);
+module_exit(gpio_mockup_exit);
MODULE_AUTHOR("Kamlakant Patel <kamlakant.patel@broadcom.com>");
MODULE_AUTHOR("Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>");