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)
commitfc22e7dbcdb3e06a3d3ce05fc91c6a2345411f9b
treec2b90e15a5506d94d3f5528a8b431b3f0a6edc64
parent9835cec6d557b0bff3d48bd91cd0484aba59386c
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