1. 22 11月, 2008 4 次提交
    • K
      ssb: struct device - replace bus_id with dev_name(), dev_set_name() · b7b05fe7
      Kay Sievers 提交于
      This patch is part of a larger patch series which will remove
      the "char bus_id[20]" name string from struct device. The device
      name is managed in the kobject anyway, and without any size
      limitation, and just needlessly copied into "struct device".
      
      To set and read the device name dev_name(dev) and dev_set_name(dev)
      must be used. If your code uses static kobjects, which it shouldn't
      do, "const char *init_name" can be used to statically provide the
      name the registered device should have. At registration time, the
      init_name field is cleared, to enforce the use of dev_name(dev) to
      access the device name at a later time.
      
      We need to get rid of all occurrences of bus_id in the entire tree
      to be able to enable the new interface. Please apply this patch,
      and possibly convert any remaining remaining occurrences of bus_id.
      
      We want to submit a patch to -next, which will remove bus_id from
      "struct device", to find the remaining pieces to convert, and finally
      switch over to the new api, which will remove the 20 bytes array
      and does no longer have a size limitation.
      
      CC: Michael Buesch <mb@bu3sch.de>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-Off-By: NKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      b7b05fe7
    • A
      libertas: Fine grained configuration of wake-on-lan. · 582c1b53
      Anna Neal 提交于
      Based on a patch from Shailendra Govardhan <shailen@marvell.com>.
      This patch allows implementation of more specific wake-on-lan rules than those
      of ethtool.
      
      Please note that only firmware 5.110.22.p20 and above supports this feature.
      
      This patch only implements the driver/firmware interface, not the
      userspace/driver interface.
      Signed-off-by: NAnna Neal <anna@cozybit.com>
      Signed-off-by: NJavier Cardona <javier@cozybit.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      582c1b53
    • J
      ipw2100, ipw2200: select LIB80211 · 50da3ead
      John W. Linville 提交于
      Otherwise some configs can result in missing print_ssid...
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      50da3ead
    • J
      netdevice zd1201: Convert directly reference of netdev->priv to netdev_priv() · 3d29b0c3
      John W. Linville 提交于
      We have some reasons to kill netdev->priv:
      1. netdev->priv is equal to netdev_priv().
      2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
         netdev_priv() is more flexible than netdev->priv.
      But we cann't kill netdev->priv, because so many drivers reference to it
      directly.
      
      OK, becasue Dave S. Miller said, "every direct netdev->priv usage is a bug",
      and I want to kill netdev->priv later, I decided to convert all the direct
      reference of netdev->priv first.
      
      (Original patch posted by Wang Chen <wangchen@cn.fujitsu.com> w/ above
      changelog but using dev->ml_priv.  That doesn't seem appropriate
      to me for this driver, so I've revamped it to use netdev_priv()
      instead. -- JWL)
      Reviewed-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3d29b0c3
  2. 21 11月, 2008 36 次提交
新手
引导
客服 返回
顶部