Skip to content

Commit becaf17

Browse files
levengeekkishon
authored andcommitted
phy: fix structure documentation
Add missing documentation of structure members and modify the order of documentation to match that of the structure declaration. Signed-off-by: Dov Levenglick <dov.levenglick@gmail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent 95cc6e7 commit becaf17

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎include/linux/phy/phy.h‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ struct phy_attrs {
8181
* @mutex: mutex to protect phy_ops
8282
* @init_count: used to protect when the PHY is used by multiple consumers
8383
* @power_count: used to protect when the PHY is used by multiple consumers
84-
* @phy_attrs: used to specify PHY specific attributes
84+
* @attrs: used to specify PHY specific attributes
85+
* @pwr: power regulator associated with the phy
8586
*/
8687
struct phy {
8788
struct device dev;
@@ -97,9 +98,10 @@ struct phy {
9798
/**
9899
* struct phy_provider - represents the phy provider
99100
* @dev: phy provider device
101+
* @children: can be used to override the default (dev->of_node) child node
100102
* @owner: the module owner having of_xlate
101-
* @of_xlate: function pointer to obtain phy instance from phy pointer
102103
* @list: to maintain a linked list of PHY providers
104+
* @of_xlate: function pointer to obtain phy instance from phy pointer
103105
*/
104106
struct phy_provider {
105107
struct device *dev;
@@ -110,6 +112,13 @@ struct phy_provider {
110112
struct of_phandle_args *args);
111113
};
112114

115+
/**
116+
* struct phy_lookup - PHY association in list of phys managed by the phy driver
117+
* @node: list node
118+
* @dev_id: the device of the association
119+
* @con_id: connection ID string on device
120+
* @phy: the phy of the association
121+
*/
113122
struct phy_lookup {
114123
struct list_head node;
115124
const char *dev_id;

0 commit comments

Comments
 (0)