lkml.org 
[lkml]   [2019]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] device: Fix comment for driver_data in struct device
From
Date
On 05.02.19 at 14:23, Andy Shevchenko wrote:
> On Tue, Feb 05, 2019 at 01:19:52PM +0100, David Engraf wrote:
>> dev_set_drvdata/dev_get_drvdata is used to access driver_data
>> in struct device.
>
> The original comment might be slight confusing, though we all know the concept
> of getters and setters.

Okay you're right. I was a bit confused about the syntax.

Thanks
- David


>> void *platform_data; /* Platform specific data, device
>> core doesn't touch it */
>> void *driver_data; /* Driver data, set and get with
>> - dev_set/get_drvdata */
>> + dev_set_drvdata/dev_get_drvdata */
>> struct dev_links_info links;
>> struct dev_pm_info power;
>> struct dev_pm_domain *pm_domain;
>> --
>> 2.17.1
>>
>

\
 
 \ /
  Last update: 2019-02-06 08:50    [W:0.038 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site