1. 11 8月, 2012 4 次提交
  2. 18 7月, 2012 1 次提交
  3. 12 7月, 2012 1 次提交
  4. 20 6月, 2012 1 次提交
  5. 30 5月, 2012 1 次提交
  6. 11 5月, 2012 1 次提交
    • J
      drivers/net: Convert compare_ether_addr to ether_addr_equal · 2e42e474
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e42e474
  7. 28 4月, 2012 1 次提交
  8. 17 4月, 2012 3 次提交
    • A
      net/wireless: use module_pci_driver · 5b0a3b7e
      Axel Lin 提交于
      This patch converts the drivers in drivers/net/wireless/* to use
      module_pci_driver() macro which makes the code smaller and a bit simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Jiri Slaby <jirislaby@gmail.com>
      Cc: Nick Kossifidis <mickflemm@gmail.com>
      Cc: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
      Cc: Simon Kelley <simon@thekelleys.org.uk>
      Cc: Jouni Malinen <j@w1.fi>
      Cc: Lennert Buytenhek <buytenh@wantstofly.org>
      Cc: Christian Lamparter <chunkeey@googlemail.com>
      Cc: Ivo van Doorn <IvDoorn@gmail.com>
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Cc: linux-wireless@vger.kernel.org
      Acked-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5b0a3b7e
    • Y
      ath5k: add PCI id · 88642088
      Yoshinori Sato 提交于
      This device works fine of ath5k.
      
      Details bellow
      05:00.0 0200: 168c:ff1b (rev 01)
      05:00.0 Ethernet controller: Atheros Communications Inc. Device ff1b (rev 01)
      	Flags: bus master, fast devsel, latency 0, IRQ 19
      	Memory at febf0000 (64-bit, non-prefetchable) [size=64K]
      	Capabilities: <access denied>
      	Kernel driver in use: ath5k
      
      ath5k 0000:05:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
      ath5k 0000:05:00.0: setting latency timer to 64
      ath5k 0000:05:00.0: registered as 'phy0'
      ath: EEPROM regdomain: 0x67
      ath: EEPROM indicates we should expect a direct regpair map
      ath: Country alpha2 being used: 00
      ath: Regpair used: 0x67
      ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
      ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)
      Signed-off-by: NYoshinori Sato <ysato@users.sourceforge.jp>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      88642088
    • J
      ath5k: use compare_ether_addr on MAC addresses instead of memcmp · 94c84ee6
      Jonathan Bither 提交于
      Following Felix's recent patchset as an example I have replaced memcmp with
      compare_ether_addr.
      
      "Because of the constant size and guaranteed 16 bit alignment, the inline
      compare_ether_addr function is much cheaper than calling memcmp."
      Signed-off-by: NJonathan Bither <jonbither@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      94c84ee6
  9. 14 4月, 2012 3 次提交
  10. 12 4月, 2012 1 次提交
  11. 11 4月, 2012 2 次提交
  12. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  13. 07 3月, 2012 3 次提交
  14. 23 2月, 2012 1 次提交
  15. 13 2月, 2012 1 次提交
  16. 25 1月, 2012 2 次提交
  17. 05 1月, 2012 1 次提交
    • L
      ath5k: avoid sparse warnings on tracing · 76ff9a61
      Luis R. Rodriguez 提交于
      Just skip the sparse checks on tracing.
      
        CHECK   drivers/net/wireless/ath/ath5k/base.c
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:19:1: error: incompatible types for operation (<)
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:19:1:    left side has type struct ath5k_hw *<noident>
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:19:1:    right side has type int
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:37:1: error: incompatible types for operation (<)
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:37:1:    left side has type struct ath5k_hw *<noident>
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:37:1:    right side has type int
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:63:1: error: incompatible types for operation (<)
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:63:1:    left side has type struct ath5k_hw *<noident>
      include/trace/../../drivers/net/wireless/ath/ath5k/trace.h:63:1:    right side has type int
      /home/mcgrof/wireless-testing/arch/x86/include/asm/jump_label.h:16:9: error: bad asm output
      /home/mcgrof/wireless-testing/arch/x86/include/asm/jump_label.h:16:9: error: bad asm output
      /home/mcgrof/wireless-testing/arch/x86/include/asm/jump_label.h:16:9: error: bad asm output
      /home/mcgrof/wireless-testing/arch/x86/include/asm/jump_label.h:16:9: error: bad asm output
        CC [M]  drivers/net/wireless/ath/ath5k/base.o
      Signed-off-by: NLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      76ff9a61
  18. 20 12月, 2011 2 次提交
  19. 29 11月, 2011 10 次提交