diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2023-06-23 16:28:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-04 16:21:30 +0200 |
commit | 8306d6f35dbde19fe2d56964159fa2b4c6343bc1 (patch) | |
tree | a0e07d33e61b94cce42356cc0d6f7887dce2d72d /drivers/peci/controller | |
parent | cdx: Explicitly include correct DT includes (diff) | |
download | linux-8306d6f35dbde19fe2d56964159fa2b4c6343bc1.tar.xz linux-8306d6f35dbde19fe2d56964159fa2b4c6343bc1.zip |
peci: Constify struct peci_controller_ops
As with most ops structs, we never modify it at runtime, and keeping
function pointers in read-only memory is generally a good thing
security-wise.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20230327224315.11135-1-zev@bewilderbeest.net
Reviewed-by: Iwona Winiarska <iwona.winiarska@intel.com>
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Link: https://lore.kernel.org/r/20230623142805.577612-1-iwona.winiarska@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/peci/controller')
-rw-r--r-- | drivers/peci/controller/peci-aspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/peci/controller/peci-aspeed.c b/drivers/peci/controller/peci-aspeed.c index 731c5d8f75c6..7fdc25afcf2f 100644 --- a/drivers/peci/controller/peci-aspeed.c +++ b/drivers/peci/controller/peci-aspeed.c @@ -468,7 +468,7 @@ static void aspeed_peci_property_setup(struct aspeed_peci *priv) ASPEED_PECI_CMD_TIMEOUT_MS_DEFAULT, &priv->cmd_timeout_ms); } -static struct peci_controller_ops aspeed_ops = { +static const struct peci_controller_ops aspeed_ops = { .xfer = aspeed_peci_xfer, }; |