]> git.ipfire.org Git - thirdparty/linux.git/commit
bus: mhi: ep: Make mhi_ep_bus_type const
authorAdrian Barnaś <abarnas@google.com>
Fri, 19 Sep 2025 07:44:08 +0000 (07:44 +0000)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Wed, 15 Oct 2025 11:26:03 +0000 (16:56 +0530)
commita58b20aa3f890a4fe3e2ad38649359997161dd91
tree1c77e785e7ec5d99482ea8aa4538944bf850c2d0
parent3a8660878839faadb4f1a6dd72c3179c1df56787
bus: mhi: ep: Make mhi_ep_bus_type const

Because driver core can properly handle constant struct bus_type, move the
mhi_ep_bus_type to be a constant structure as well, placing it into
read-only memory which can not be modified at runtime.

Signed-off-by: Adrian Barnaś <abarnas@google.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20250919074408.868220-1-abarnas@google.com
drivers/bus/mhi/ep/internal.h
drivers/bus/mhi/ep/main.c