We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa39032 commit 4beb44aCopy full SHA for 4beb44a
include/linux/phy.h
@@ -169,6 +169,11 @@ static inline bool phy_interface_empty(const unsigned long *intf)
169
return bitmap_empty(intf, PHY_INTERFACE_MODE_MAX);
170
}
171
172
+static inline unsigned int phy_interface_weight(const unsigned long *intf)
173
+{
174
+ return bitmap_weight(intf, PHY_INTERFACE_MODE_MAX);
175
+}
176
+
177
static inline void phy_interface_and(unsigned long *dst, const unsigned long *a,
178
const unsigned long *b)
179
{
0 commit comments