Re: [PATCH v4 1/4] fpga: dfl: expose feature revision from struct dfl_device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 06/07/2021 16.10, Tom Rix wrote:
diff --git a/drivers/fpga/dfl.c b/drivers/fpga/dfl.c
index 511b20ff35a3..9381c579d1cd 100644
--- a/drivers/fpga/dfl.c
+++ b/drivers/fpga/dfl.c
@@ -381,6 +381,7 @@ dfl_dev_add(struct dfl_feature_platform_data *pdata,
      ddev->type = feature_dev_id_type(pdev);
      ddev->feature_id = feature->id;
+    ddev->revision = feature->revision;
      ddev->cdev = pdata->dfl_cdev;
      /* add mmio resource */
@@ -717,6 +718,7 @@ struct build_feature_devs_info {
   */
  struct dfl_feature_info {
      u16 fid;
+    u8 rev;

In other places 'revision' is the element name.

For consistency, change rev to revision

So is fid vs. feature. I deliberately chose 'rev' to be consistent
with other elements in struct dfl_feature_info.

// Martin



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux