diff options
author | Jeff Johnson <quic_jjohnson@quicinc.com> | 2024-02-23 04:06:38 +0300 |
---|---|---|
committer | Jeffrey Hugo <quic_jhugo@quicinc.com> | 2024-02-23 19:06:50 +0300 |
commit | 155ad86b5eca49e1f9716d13d88f2db13e5a5b19 (patch) | |
tree | 8d51d3d807d2b73bfef30c24d44dae603d1c2355 /drivers/accel | |
parent | 0d024974014f39207c5f52e770059b5bac35ea6d (diff) | |
download | linux-155ad86b5eca49e1f9716d13d88f2db13e5a5b19.tar.xz |
accel/qaic: Constify aic100_channels
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
Diffstat (limited to 'drivers/accel')
-rw-r--r-- | drivers/accel/qaic/mhi_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accel/qaic/mhi_controller.c b/drivers/accel/qaic/mhi_controller.c index 51cb85d0387b..ada9b1eb0787 100644 --- 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, |