Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1587946
| From | Krzysztof Kozlowski <krzk@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/7] watchdog: s3c2410: Add prefix to local function |
| Date | 2017-02-24 22:20 +0100 |
| Message-ID | <tevrr-5ZH-7@gated-at.bofh.it> (permalink) |
| References | <tevhL-5TR-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Functions marked static inline might not be inlined so a driver-specific
prefix for function name helps when looking through call backtrace.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
drivers/watchdog/s3c2410_wdt.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index f7aad19d20ff..a031842ffcb0 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -507,9 +507,8 @@ static inline unsigned int s3c2410wdt_get_bootstatus(struct s3c2410_wdt *wdt)
return 0;
}
-/* s3c2410_get_wdt_driver_data */
static inline struct s3c2410_wdt_variant *
-get_wdt_drv_data(struct platform_device *pdev)
+s3c2410_get_wdt_drv_data(struct platform_device *pdev)
{
if (pdev->dev.of_node) {
const struct of_device_id *match;
@@ -541,7 +540,7 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
spin_lock_init(&wdt->lock);
wdt->wdt_device = s3c2410_wdd;
- wdt->drv_data = get_wdt_drv_data(pdev);
+ wdt->drv_data = s3c2410_get_wdt_drv_data(pdev);
if (wdt->drv_data->quirks & QUIRKS_HAVE_PMUREG) {
wdt->pmureg = syscon_regmap_lookup_by_phandle(dev->of_node,
"samsung,syscon-phandle");
--
2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/7] watchdog: s3c2410: Use dev_dbg instead of pr_info Krzysztof Kozlowski <krzk@kernel.org> - 2017-02-24 22:20 +0100
[PATCH 4/7] watchdog: s3c2410: Add prefix to local function Krzysztof Kozlowski <krzk@kernel.org> - 2017-02-24 22:20 +0100
Re: [PATCH 4/7] watchdog: s3c2410: Add prefix to local function Guenter Roeck <linux@roeck-us.net> - 2017-02-24 23:00 +0100
[PATCH 3/7] watchdog: s3c2410: Enable COMPILE_TEST Krzysztof Kozlowski <krzk@kernel.org> - 2017-02-24 22:20 +0100
Re: [PATCH 3/7] watchdog: s3c2410: Enable COMPILE_TEST Guenter Roeck <linux@roeck-us.net> - 2017-02-24 23:00 +0100
[PATCH 2/7] watchdog: s3c2410: Select MFD_SYSCON on all Exynos platforms Krzysztof Kozlowski <krzk@kernel.org> - 2017-02-24 22:20 +0100
Re: [PATCH 2/7] watchdog: s3c2410: Select MFD_SYSCON on all Exynos platforms Guenter Roeck <linux@roeck-us.net> - 2017-02-24 23:00 +0100
Re: [PATCH 1/7] watchdog: s3c2410: Use dev_dbg instead of pr_info Guenter Roeck <linux@roeck-us.net> - 2017-02-24 23:00 +0100
csiph-web