Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
501110b7
Commit
501110b7
authored
Jun 10, 2003
by
Olaf Hering
Committed by
Linus Torvalds
Jun 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: incorrect ethtool -i driver name
parent
8e3231bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
drivers/usb/net/catc.c
drivers/usb/net/catc.c
+4
-2
drivers/usb/net/kaweth.c
drivers/usb/net/kaweth.c
+4
-2
drivers/usb/net/rtl8150.c
drivers/usb/net/rtl8150.c
+4
-2
No files found.
drivers/usb/net/catc.c
View file @
501110b7
...
@@ -63,6 +63,8 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
...
@@ -63,6 +63,8 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
static
const
char
driver_name
[]
=
"catc"
;
/*
/*
* Some defines.
* Some defines.
*/
*/
...
@@ -677,7 +679,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
...
@@ -677,7 +679,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
/* get driver info */
/* get driver info */
case
ETHTOOL_GDRVINFO
:
{
case
ETHTOOL_GDRVINFO
:
{
struct
ethtool_drvinfo
info
=
{
ETHTOOL_GDRVINFO
};
struct
ethtool_drvinfo
info
=
{
ETHTOOL_GDRVINFO
};
strncpy
(
info
.
driver
,
SHORT_DRIVER_DESC
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
driver
,
driver_name
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
version
,
DRIVER_VERSION
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
version
,
DRIVER_VERSION
,
ETHTOOL_BUSINFO_LEN
);
usb_make_path
(
catc
->
usbdev
,
info
.
bus_info
,
sizeof
info
.
bus_info
);
usb_make_path
(
catc
->
usbdev
,
info
.
bus_info
,
sizeof
info
.
bus_info
);
if
(
copy_to_user
(
useraddr
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
(
useraddr
,
&
info
,
sizeof
(
info
)))
...
@@ -967,7 +969,7 @@ MODULE_DEVICE_TABLE(usb, catc_id_table);
...
@@ -967,7 +969,7 @@ MODULE_DEVICE_TABLE(usb, catc_id_table);
static
struct
usb_driver
catc_driver
=
{
static
struct
usb_driver
catc_driver
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
name
=
"catc"
,
.
name
=
driver_name
,
.
probe
=
catc_probe
,
.
probe
=
catc_probe
,
.
disconnect
=
catc_disconnect
,
.
disconnect
=
catc_disconnect
,
.
id_table
=
catc_id_table
,
.
id_table
=
catc_id_table
,
...
...
drivers/usb/net/kaweth.c
View file @
501110b7
...
@@ -114,6 +114,8 @@ MODULE_AUTHOR("Michael Zappe <zapman@interlan.net>, Stephane Alnet <stephane@u-p
...
@@ -114,6 +114,8 @@ MODULE_AUTHOR("Michael Zappe <zapman@interlan.net>, Stephane Alnet <stephane@u-p
MODULE_DESCRIPTION
(
"KL5USB101 USB Ethernet driver"
);
MODULE_DESCRIPTION
(
"KL5USB101 USB Ethernet driver"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
static
const
char
driver_name
[]
=
"kaweth"
;
static
int
kaweth_probe
(
static
int
kaweth_probe
(
struct
usb_interface
*
intf
,
struct
usb_interface
*
intf
,
const
struct
usb_device_id
*
id
/* from id_table */
const
struct
usb_device_id
*
id
/* from id_table */
...
@@ -169,7 +171,7 @@ MODULE_DEVICE_TABLE (usb, usb_klsi_table);
...
@@ -169,7 +171,7 @@ MODULE_DEVICE_TABLE (usb, usb_klsi_table);
****************************************************************/
****************************************************************/
static
struct
usb_driver
kaweth_driver
=
{
static
struct
usb_driver
kaweth_driver
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
name
=
"kaweth"
,
.
name
=
driver_name
,
.
probe
=
kaweth_probe
,
.
probe
=
kaweth_probe
,
.
disconnect
=
kaweth_disconnect
,
.
disconnect
=
kaweth_disconnect
,
.
id_table
=
usb_klsi_table
,
.
id_table
=
usb_klsi_table
,
...
@@ -670,7 +672,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
...
@@ -670,7 +672,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
switch
(
ethcmd
)
{
switch
(
ethcmd
)
{
case
ETHTOOL_GDRVINFO
:
{
case
ETHTOOL_GDRVINFO
:
{
struct
ethtool_drvinfo
info
=
{
ETHTOOL_GDRVINFO
};
struct
ethtool_drvinfo
info
=
{
ETHTOOL_GDRVINFO
};
strlcpy
(
info
.
driver
,
"kaweth"
,
sizeof
(
info
.
driver
));
strlcpy
(
info
.
driver
,
driver_name
,
sizeof
(
info
.
driver
));
if
(
copy_to_user
(
useraddr
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
(
useraddr
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
...
...
drivers/usb/net/rtl8150.c
View file @
501110b7
...
@@ -114,9 +114,11 @@ static void rtl8150_disconnect(struct usb_interface *intf);
...
@@ -114,9 +114,11 @@ static void rtl8150_disconnect(struct usb_interface *intf);
static
int
rtl8150_probe
(
struct
usb_interface
*
intf
,
static
int
rtl8150_probe
(
struct
usb_interface
*
intf
,
const
struct
usb_device_id
*
id
);
const
struct
usb_device_id
*
id
);
static
const
char
driver_name
[]
=
"rtl8150"
;
static
struct
usb_driver
rtl8150_driver
=
{
static
struct
usb_driver
rtl8150_driver
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
name
=
"rtl8150"
,
.
name
=
driver_name
,
.
probe
=
rtl8150_probe
,
.
probe
=
rtl8150_probe
,
.
disconnect
=
rtl8150_disconnect
,
.
disconnect
=
rtl8150_disconnect
,
.
id_table
=
rtl8150_table
,
.
id_table
=
rtl8150_table
,
...
@@ -690,7 +692,7 @@ static int rtl8150_ethtool_ioctl(struct net_device *netdev, void *uaddr)
...
@@ -690,7 +692,7 @@ static int rtl8150_ethtool_ioctl(struct net_device *netdev, void *uaddr)
case
ETHTOOL_GDRVINFO
:{
case
ETHTOOL_GDRVINFO
:{
struct
ethtool_drvinfo
info
=
{
ETHTOOL_GDRVINFO
};
struct
ethtool_drvinfo
info
=
{
ETHTOOL_GDRVINFO
};
strncpy
(
info
.
driver
,
DRIVER_DESC
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
driver
,
driver_name
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
version
,
DRIVER_VERSION
,
ETHTOOL_BUSINFO_LEN
);
strncpy
(
info
.
version
,
DRIVER_VERSION
,
ETHTOOL_BUSINFO_LEN
);
usb_make_path
(
dev
->
udev
,
info
.
bus_info
,
sizeof
info
.
bus_info
);
usb_make_path
(
dev
->
udev
,
info
.
bus_info
,
sizeof
info
.
bus_info
);
if
(
copy_to_user
(
uaddr
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
(
uaddr
,
&
info
,
sizeof
(
info
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment