2
0

852-stable-bus-mhi-host-pci_generic-constify-modem_telit_fn980_.patch 1.2 KB

12345678910111213141516171819202122232425262728
  1. From 2f5e59d70566902d7b4e13c6af3f042f5d28b78b Mon Sep 17 00:00:00 2001
  2. From: Jeff Johnson <[email protected]>
  3. Date: Thu, 22 Feb 2024 18:00:23 -0800
  4. Subject: [PATCH 2/2] bus: mhi: host: pci_generic: constify
  5. modem_telit_fn980_hw_v1_config
  6. MHI expects the controller configs to be const, and all of the other ones
  7. in this file already are, so constify modem_telit_fn980_hw_v1_config.
  8. Signed-off-by: Jeff Johnson <[email protected]>
  9. Reviewed-by: Manivannan Sadhasivam <[email protected]>
  10. Link: https://lore.kernel.org/r/20240222-mhi-const-bus-mhi-host-pci_generic-v1-1-d4c9b0b0a7a5@quicinc.com
  11. Signed-off-by: Manivannan Sadhasivam <[email protected]>
  12. ---
  13. drivers/bus/mhi/host/pci_generic.c | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. --- a/drivers/bus/mhi/host/pci_generic.c
  16. +++ b/drivers/bus/mhi/host/pci_generic.c
  17. @@ -538,7 +538,7 @@ static struct mhi_event_config mhi_telit
  18. MHI_EVENT_CONFIG_HW_DATA(2, 2048, 101)
  19. };
  20. -static struct mhi_controller_config modem_telit_fn980_hw_v1_config = {
  21. +static const struct mhi_controller_config modem_telit_fn980_hw_v1_config = {
  22. .max_channels = 128,
  23. .timeout_ms = 20000,
  24. .num_channels = ARRAY_SIZE(mhi_telit_fn980_hw_v1_channels),