lkml.org 
[lkml]   [2021]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 1/4] fpga: dfl: expose feature revision from struct dfl_device
From
Date


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

\
 
 \ /
  Last update: 2021-07-14 13:14    [W:0.092 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site