[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ffd5153-e182-c615-0a81-2f5dad4979f5@silicom.dk>
Date: Wed, 14 Jul 2021 13:14:04 +0200
From: Martin Hundebøll <mhu@...icom.dk>
To: Tom Rix <trix@...hat.com>,
Martin Hundebøll <martin@...nix.com>,
Wu Hao <hao.wu@...el.com>, Moritz Fischer <mdf@...nel.org>,
Xu Yilun <yilun.xu@...el.com>,
Jean Delvare <jdelvare@...e.com>,
Guenter Roeck <linux@...ck-us.net>,
Lee Jones <lee.jones@...aro.org>,
Mark Brown <broonie@...nel.org>
Cc: linux-fpga@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hwmon@...r.kernel.org, linux-spi@...r.kernel.org,
Matthew Gerlach <matthew.gerlach@...ux.intel.com>
Subject: Re: [PATCH v4 1/4] fpga: dfl: expose feature revision from struct
dfl_device
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
Powered by blists - more mailing lists