pegasus.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | pegasus.c (fb3ceec187e8bca474340e361a18163a2e79c0a2) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 1999-2021 Petko Manolov (petkan@nucleusys.com) 4 * 5 */ 6 7#include <linux/sched.h> 8#include <linux/slab.h> --- 880 unchanged lines hidden (view full) --- 889 return 0; 890} 891 892static void pegasus_get_drvinfo(struct net_device *dev, 893 struct ethtool_drvinfo *info) 894{ 895 pegasus_t *pegasus = netdev_priv(dev); 896 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 1999-2021 Petko Manolov (petkan@nucleusys.com) 4 * 5 */ 6 7#include <linux/sched.h> 8#include <linux/slab.h> --- 880 unchanged lines hidden (view full) --- 889 return 0; 890} 891 892static void pegasus_get_drvinfo(struct net_device *dev, 893 struct ethtool_drvinfo *info) 894{ 895 pegasus_t *pegasus = netdev_priv(dev); 896 |
897 strlcpy(info->driver, driver_name, sizeof(info->driver)); | 897 strscpy(info->driver, driver_name, sizeof(info->driver)); |
898 usb_make_path(pegasus->usb, info->bus_info, sizeof(info->bus_info)); 899} 900 901/* also handles three patterns of some kind in hardware */ 902#define WOL_SUPPORTED (WAKE_MAGIC|WAKE_PHY) 903 904static void 905pegasus_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) --- 431 unchanged lines hidden --- | 898 usb_make_path(pegasus->usb, info->bus_info, sizeof(info->bus_info)); 899} 900 901/* also handles three patterns of some kind in hardware */ 902#define WOL_SUPPORTED (WAKE_MAGIC|WAKE_PHY) 903 904static void 905pegasus_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) --- 431 unchanged lines hidden --- |