mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: net: Kill ratelimit.h dependency in linux/net.h net: Add linux/sysctl.h includes where needed. net: Kill ether_table[] declaration. inetpeer: fix race in unused_list manipulations atm: expose ATM device index in sysfs IPVS: bug in ip_vs_ftp, same list heaad used in all netns. bug.h: Move ratelimit warn interfaces to ratelimit.h bonding: cleanup module option descriptions net:8021q:vlan.c Fix pr_info to just give the vlan fullname and version. net: davinci_emac: fix dev_err use at probe can: convert to %pK for kptr_restrict support net: fix ETHTOOL_SFEATURES compatibility with old ethtool_ops.set_flags netfilter: Fix several warnings in compat_mtw_from_user(). netfilter: ipset: fix ip_set_flush return code netfilter: ipset: remove unused variable from type_pf_tdel() netfilter: ipset: Use proper timeout value to jiffies conversion
This commit is contained in:
commit
10799db60c
23 changed files with 189 additions and 119 deletions
|
|
@ -59,6 +59,14 @@ static ssize_t show_atmaddress(struct device *cdev,
|
|||
return pos - buf;
|
||||
}
|
||||
|
||||
static ssize_t show_atmindex(struct device *cdev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
struct atm_dev *adev = to_atm_dev(cdev);
|
||||
|
||||
return sprintf(buf, "%d\n", adev->number);
|
||||
}
|
||||
|
||||
static ssize_t show_carrier(struct device *cdev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
{
|
||||
|
|
@ -99,6 +107,7 @@ static ssize_t show_link_rate(struct device *cdev,
|
|||
|
||||
static DEVICE_ATTR(address, S_IRUGO, show_address, NULL);
|
||||
static DEVICE_ATTR(atmaddress, S_IRUGO, show_atmaddress, NULL);
|
||||
static DEVICE_ATTR(atmindex, S_IRUGO, show_atmindex, NULL);
|
||||
static DEVICE_ATTR(carrier, S_IRUGO, show_carrier, NULL);
|
||||
static DEVICE_ATTR(type, S_IRUGO, show_type, NULL);
|
||||
static DEVICE_ATTR(link_rate, S_IRUGO, show_link_rate, NULL);
|
||||
|
|
@ -106,6 +115,7 @@ static DEVICE_ATTR(link_rate, S_IRUGO, show_link_rate, NULL);
|
|||
static struct device_attribute *atm_attrs[] = {
|
||||
&dev_attr_atmaddress,
|
||||
&dev_attr_address,
|
||||
&dev_attr_atmindex,
|
||||
&dev_attr_carrier,
|
||||
&dev_attr_type,
|
||||
&dev_attr_link_rate,
|
||||
|
|
|
|||
Loading…
Reference in a new issue