]> git.karo-electronics.de Git - linux-beck.git/commit
hso: fix rfkill name conflicts
authorOlivier Sobrie <olivier@sobrie.be>
Fri, 30 Jan 2015 12:22:03 +0000 (13:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 20:33:27 +0000 (12:33 -0800)
commit38121067b10268385ca00978d1c1a241cd5eadfb
treef85a75e5222c2ea3a10a2463f092ff017f7709c9
parentcc491970f5cef560b9e5bf037f0c9dd1e4d6a4bd
hso: fix rfkill name conflicts

By using only the usb interface number for the rfkill name, we might
have a name conflicts in case two similar hso devices are connected.

In this patch, the name of the hso rfkill interface embed the value
of a counter that is incremented each time a new rfkill interface is
added.

Suggested-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c