diff options
| author | Peter Colberg <[email protected]> | 2024-11-20 01:10:23 +0000 |
|---|---|---|
| committer | Xu Yilun <[email protected]> | 2024-12-18 14:28:48 +0000 |
| commit | 975a7301f581d7f5f9d84539b0ad45bb82c2ac3d (patch) | |
| tree | 74e8144c46dc71849df1da1b30ecbab96adbdb97 /drivers/fpga/dfl.h | |
| parent | fpga: dfl: factor out feature data creation from build_info_commit_dev() (diff) | |
| download | kernel-975a7301f581d7f5f9d84539b0ad45bb82c2ac3d.tar.gz kernel-975a7301f581d7f5f9d84539b0ad45bb82c2ac3d.zip | |
fpga: dfl: store FIU type in feature platform data
Remove the local function feature_dev_id_type() in favor of persisting
the FIU type in struct dfl_feature_platform_data. Add type to struct
build_feature_devs_info and drop argument to build_info_create_dev().
Signed-off-by: Peter Colberg <[email protected]>
Reviewed-by: Matthew Gerlach <[email protected]>
Reviewed-by: Basheer Ahmed Muddebihal <[email protected]>
Acked-by: Xu Yilun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Xu Yilun <[email protected]>
Diffstat (limited to 'drivers/fpga/dfl.h')
| -rw-r--r-- | drivers/fpga/dfl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/fpga/dfl.h b/drivers/fpga/dfl.h index 8ef9f33e22c1..d3a8a8ef908b 100644 --- a/drivers/fpga/dfl.h +++ b/drivers/fpga/dfl.h @@ -17,6 +17,7 @@ #include <linux/bitfield.h> #include <linux/cdev.h> #include <linux/delay.h> +#include <linux/dfl.h> #include <linux/eventfd.h> #include <linux/fs.h> #include <linux/interrupt.h> @@ -308,6 +309,7 @@ struct dfl_feature { * @lock: mutex to protect platform data. * @cdev: cdev of feature dev. * @dev: ptr to platform device linked with this platform data. + * @type: type of DFL FIU for the feature dev. See enum dfl_id_type. * @dfl_cdev: ptr to container device. * @id: id used for this feature device. * @disable_count: count for port disable. @@ -322,6 +324,7 @@ struct dfl_feature_platform_data { struct mutex lock; struct cdev cdev; struct platform_device *dev; + enum dfl_id_type type; struct dfl_fpga_cdev *dfl_cdev; int id; unsigned int disable_count; |
