]> git.baikalelectronics.ru Git - kernel.git/commit
platform-msi: Store platform private data pointer in msi_device_data
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Dec 2021 22:19:11 +0000 (23:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:39 +0000 (22:16 +0100)
commitc74bc7e527a6d9e4cbf1f46c767ce630deee38a4
treec2b90e15a5506d94d3f5528a8b431b3f0a6edc64
parentc87e079977e9daa5c6ec1765476baf94193d1a61
platform-msi: Store platform private data pointer in msi_device_data

Storing the platform private data in a MSI descriptor is sloppy at
best. The data belongs to the device and not to the descriptor.
Add a pointer to struct msi_device_data and store the pointer there.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211210221814.287680528@linutronix.de
drivers/base/platform-msi.c
include/linux/msi.h