* [PATCH] ARM: scoop: move EXPORT_SYMBOLs to follow their funcs
@ 2021-07-27 13:05 Jason Wang
2021-09-09 14:12 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2021-07-27 13:05 UTC (permalink / raw)
To: linux; +Cc: linux-arm-kernel, linux-kernel, Jason Wang
Usually, EXPORT_SYMBOLs should immediately follow their functions or
variables.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
arch/arm/common/scoop.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c
index 6edb961bd6c1..746919c18bb1 100644
--- a/arch/arm/common/scoop.c
+++ b/arch/arm/common/scoop.c
@@ -49,6 +49,7 @@ void reset_scoop(struct device *dev)
iowrite16(0x0000, sdev->base + SCOOP_ISR); /* 1C */
iowrite16(0x0000, sdev->base + SCOOP_IRM);
}
+EXPORT_SYMBOL(reset_scoop);
static void __scoop_gpio_set(struct scoop_dev *sdev,
unsigned offset, int value)
@@ -126,15 +127,13 @@ unsigned short read_scoop_reg(struct device *dev, unsigned short reg)
struct scoop_dev *sdev = dev_get_drvdata(dev);
return ioread16(sdev->base + reg);
}
+EXPORT_SYMBOL(read_scoop_reg);
void write_scoop_reg(struct device *dev, unsigned short reg, unsigned short data)
{
struct scoop_dev *sdev = dev_get_drvdata(dev);
iowrite16(data, sdev->base + reg);
}
-
-EXPORT_SYMBOL(reset_scoop);
-EXPORT_SYMBOL(read_scoop_reg);
EXPORT_SYMBOL(write_scoop_reg);
#ifdef CONFIG_PM
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: scoop: move EXPORT_SYMBOLs to follow their funcs
2021-07-27 13:05 [PATCH] ARM: scoop: move EXPORT_SYMBOLs to follow their funcs Jason Wang
@ 2021-09-09 14:12 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2021-09-09 14:12 UTC (permalink / raw)
To: Jason Wang; +Cc: linux, linux-arm-kernel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 586 bytes --]
Hello,
On Tue, Jul 27, 2021 at 09:05:47PM +0800, Jason Wang wrote:
> Usually, EXPORT_SYMBOLs should immediately follow their functions or
> variables.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Unless rmk objects I think you can send this to his patch tracker.
(https://www.arm.linux.org.uk/developer/patches/info.php)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-09 14:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 13:05 [PATCH] ARM: scoop: move EXPORT_SYMBOLs to follow their funcs Jason Wang
2021-09-09 14:12 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).