Re: [PATCH v3] bus: mhi: make mhi_controller_config::event_cfg const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/19/2022 2:08 PM, Jeffrey Hugo wrote:
On 8/19/2022 3:02 PM, Jeff Johnson wrote:
Currently the event_cfg pointer in struct mhi_controller_config is not
defined as a const pointer. This prevents clients from registering a
read-only configuration unless they use a typecast. Since the
event_cfg should not be modified once registered, add the const
qualifier to event_cfg. This is aligned with the definition of ch_cfg.

Signed-off-by: Jeff Johnson <quic_jjohnson@xxxxxxxxxxx>
---

v3 and no changelog?

Rookie mistake :)
v1: only header file changed
v2: added SOB
v3: added pci_generic.c change



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux