* [PATCH][next] thermal/drivers/k3_j72xx_bandgap: make read-only const arrays static
@ 2023-06-27 12:22 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2023-06-27 12:22 UTC (permalink / raw)
To: Rafael J . Wysocki, Daniel Lezcano, Amit Kucheria, Zhang Rui, linux-pm
Cc: kernel-janitors, linux-kernel
Don't populate the const arrays on the stack, instead make them static.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/thermal/k3_j72xx_bandgap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c
index 5be1f09eeb2c..2250f3eec93b 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -357,7 +357,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
struct err_values err_vals;
void __iomem *fuse_base;
- const s64 golden_factors[] = {
+ static const s64 golden_factors[] = {
-490019999999999936,
3251200000000000,
-1705800000000,
@@ -365,7 +365,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
-92627,
};
- const s64 pvt_wa_factors[] = {
+ static const s64 pvt_wa_factors[] = {
-415230000000000000,
3126600000000000,
-1157800000000,
--
2.39.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-27 12:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-27 12:22 [PATCH][next] thermal/drivers/k3_j72xx_bandgap: make read-only const arrays static Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®