diff options
| author | Peter Colberg <[email protected]> | 2024-11-20 01:10:27 +0000 |
|---|---|---|
| committer | Xu Yilun <[email protected]> | 2024-12-18 14:28:48 +0000 |
| commit | b3245f700ae2e9f0ecbcf36b8908f6460db91202 (patch) | |
| tree | 35c087a581b3dbe3f86a5488a2ee38b9da29112f /drivers/fpga/dfl.h | |
| parent | fpga: dfl: factor out feature device data from platform device data (diff) | |
| download | kernel-b3245f700ae2e9f0ecbcf36b8908f6460db91202.tar.gz kernel-b3245f700ae2e9f0ecbcf36b8908f6460db91202.zip | |
fpga: dfl: convert features from flexible array member to separate array
Use a separate array allocation for features and substitute a pointer
for the flexible array member in the feature device data. A subsequent
commit will add another array for resources. The current commit converts
the flexible array member to a separate allocation for consistency.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/dfl.h b/drivers/fpga/dfl.h index bcbdfcdb9742..d2765555e109 100644 --- a/drivers/fpga/dfl.h +++ b/drivers/fpga/dfl.h @@ -330,7 +330,7 @@ struct dfl_feature_dev_data { int open_count; void *private; int num; - struct dfl_feature features[]; + struct dfl_feature *features; }; /** |
