projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d02497
)
accel/qaic: Constify aic100_channels
author
Jeff Johnson
<quic_jjohnson@quicinc.com>
Fri, 23 Feb 2024 01:06:38 +0000
(17:06 -0800)
committer
Jeffrey Hugo
<quic_jhugo@quicinc.com>
Fri, 23 Feb 2024 16:06:50 +0000
(09:06 -0700)
MHI allows the channel configs to be const, so constify
aic100_channels to prevent runtime modification.
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240222-mhi-const-accel-qaic-v1-1-028db0dd9098@quicinc.com
drivers/accel/qaic/mhi_controller.c
patch
|
blob
|
history
diff --git
a/drivers/accel/qaic/mhi_controller.c
b/drivers/accel/qaic/mhi_controller.c
index 51cb85d0387b2c71ed3bc7fc4bedc75fd83ec01c..ada9b1eb0787e33375d659e0bd6f0ce5991e3856 100644
(file)
--- a/
drivers/accel/qaic/mhi_controller.c
+++ b/
drivers/accel/qaic/mhi_controller.c
@@
-20,7
+20,7
@@
static unsigned int mhi_timeout_ms = 2000; /* 2 sec default */
module_param(mhi_timeout_ms, uint, 0600);
MODULE_PARM_DESC(mhi_timeout_ms, "MHI controller timeout value");
-static struct mhi_channel_config aic100_channels[] = {
+static
const
struct mhi_channel_config aic100_channels[] = {
{
.name = "QAIC_LOOPBACK",
.num = 0,