]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fpga: dfl: pass feature platform data instead of device as argument
authorPeter Colberg <peter.colberg@intel.com>
Wed, 20 Nov 2024 01:10:21 +0000 (20:10 -0500)
committerXu Yilun <yilun.xu@linux.intel.com>
Wed, 18 Dec 2024 14:18:04 +0000 (22:18 +0800)
commit7b34395a619cb79e85b8a0b99e620eb2cd6aaf19
tree3b03977065853c466bd4a863d09cca8ded6954c1
parent983804ec0d10b8796f76442d66f36d2a6953ba01
fpga: dfl: pass feature platform data instead of device as argument

For functions which use the feature platform data, instead of invoking
dev_get_platdata() on the device, directly pass the data as an argument.

This patch is part of a refactoring of the internal DFL APIs to move
the feature device data into a new struct dfl_feature_dev_data which
lifetime is independent of the corresponding platform device.

Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Reviewed-by: Basheer Ahmed Muddebihal <basheer.ahmed.muddebihal@linux.intel.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20241120011035.230574-6-peter.colberg@intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/dfl-afu-error.c
drivers/fpga/dfl-afu-main.c
drivers/fpga/dfl-afu.h
drivers/fpga/dfl-fme-br.c
drivers/fpga/dfl-fme-error.c
drivers/fpga/dfl-fme-main.c
drivers/fpga/dfl-fme-pr.c
drivers/fpga/dfl.c
drivers/fpga/dfl.h