1. 06 Mar, 2015 31 commits
  2. 03 Mar, 2015 1 commit
  3. 02 Mar, 2015 8 commits
    • Joe Perches's avatar
      staging: lustre: Convert uses of "int rc = seq_printf(...)" · 91b3a685
      Joe Perches authored
      The seq_printf return value, because it's frequently misused,
      will eventually be converted to void.
      
      See: commit 1f33c41c ("seq_file: Rename seq_overflow() to
           seq_has_overflowed() and make public")
      
      Convert these uses to:
      
      	seq_printf(seq, ...);
      
      	return 0;
      
      Done via cocci script:
      
      @@
      struct seq_file *seq;
      int i;
      @@
      -	i = seq_printf(seq,
      +	seq_printf(seq,
      		   ...);
      	...
      -	return i;
      +	return 0;
      
      @@
      struct seq_file *seq;
      int i;
      @@
      -	i = 0;
      -	i += seq_printf(seq,
      +	seq_printf(seq,
      	           ...);
      	...
      -	return i;
      +	return 0;
      
      With some additional reformatting and typing post conversion
      to remove the now unnecessary "int i;" declaration.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      91b3a685
    • Tolga Ceylan's avatar
      Staging: iio: meter: ade7854-i2c: code style improvements · f9be1085
      Tolga Ceylan authored
      Code reformatting based on checkpatch.pl with --strict:
      Comparison to NULL rewritten as !indio_dev
      Signed-off-by: default avatarTolga Ceylan <tolga.ceylan@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f9be1085
    • Tolga Ceylan's avatar
      Staging: iio: meter: ade7854-i2c: code style improvements · 7cb8957b
      Tolga Ceylan authored
      Code reformatting based on checkpatch.pl with --strict:
      Lines over 80 characters were fixed
      Signed-off-by: default avatarTolga Ceylan <tolga.ceylan@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7cb8957b
    • Tolga Ceylan's avatar
      Staging: iio: meter: ade7854-i2c: code style improvements · 08c95f9a
      Tolga Ceylan authored
      Code reformatting based on checkpatch.pl with --strict:
      Alignment should match open paranthesis cases corrected
      Signed-off-by: default avatarTolga Ceylan <tolga.ceylan@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      08c95f9a
    • Ian Abbott's avatar
      staging: comedi: adl_pci6208: support old PLX device ID · 361008f2
      Ian Abbott authored
      ADLINK's MS Windows drivers for the PCI-6208/6216 boards include the
      following line in the DDInstall secion of the INF file:
      
      %String6208%=DriverInstall6208.NT,PCI\VEN_10B5&DEV_9050&SUBSYS_62089999
      
      That's for a PLX PCI 9050/9052 PCI interface chip with custom subvendor
      and subdevice ID.  The "%String6208%" macro expands to "ADLINK PCI-6208"
      in the INF file.
      
      Add a corresponding entry to this driver module's PCI device table.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      361008f2
    • Ian Abbott's avatar
      staging: comedi: adl_pci6208: remove multiple board type support · 706cb51b
      Ian Abbott authored
      This driver module now only supports a single board type, so remove the
      infrastructure for describing multiple board types.  The comedi
      "auto_attach" handler, `pci6208_auto_attach()` doesn't need to set the
      comedi device's `board_name` or `board_ptr` members.  The former is
      automatically pointed to the comedi driver's `driver_name` by the core
      comedi module, and the latter is not used anywhere else.  The AO
      subdevice's `n_chans` member can be set to 16 without looking it up in
      the single element of `pci6208_boards[]`.  There is no need to pass a
      board index from the PCI device table to the "auto_attach" handler.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      706cb51b
    • Ian Abbott's avatar
      staging: comedi: adl_pci6208: combine PCI-6208 and PCI-6216 support · cd6b7660
      Ian Abbott authored
      This module's PCI device table has separate PCI device IDs for PCI-6208
      and PCI-6216, but in reality, both boards and their cPCI and PCIe
      variants seem to have the same PCI device ID: 0x6208.  The PCI subdevice
      ID doesn't seem to help either.
      
      It shouldn't do any harm to claim 16 AO channels for all devices
      supported by this driver.  The original PCI-6216 is just a PCI-6208 with
      a daughter board providing the extra DACs.  The data is clocked out to
      the DACs serially with no acknowledgment.  I assume this would still
      happen when the DACs for the upper 8 channels are missing.  Therefore,
      change the driver to support a single board type with 16 AO channels,
      and remove the suspicious PCI device ID for the PCI-6216.
      
      Evidence about lack of a separate PCI device ID for PCI-6216 follows....
      
      1. Jesus Vasquez reports the following lspci output for a PCIe-6216 on
      his Ubuntu 12.04 system:
      
      lspci -n -vvv
      07:00.0 1180: 144a:6208 (rev 02)
              Subsystem: 144a:6208
              Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
      ParErr- Stepping- SERR- FastB2B- DisINTx-
              Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
      <TAbort- <MAbort- >SERR- <PERR- INTx-
              Region 0: Memory at f6000000 (32-bit, non-prefetchable)
      [size=128]
              Region 1: I/O ports at c100 [size=128]
              Region 2: I/O ports at c000 [size=256]
              Kernel driver in use: adl_pci6208
              Kernel modules: adl_pci6208
      
      That system's "adl_pci6208" module only has the single PCI device ID for
      the PCI-6208, but works for his PCIe-6216 except that it only supports 8
      analog output channels instead of 16.
      
      2. ADLINK's binary Linux module "pci6208.ko" (there is no separate
      module for the PCI-6216) has a single alias:
      
        alias: pci:v0000144Ad00006208sv*sd*bc*sc*i*
      
      3. The MS Windows drivers include this set of hardware IDs for the
      PCI-6208 series, with nothing more specific for the PCI-6216 (they are
      all tied to the same name "ADLINK PCI-6208" and there is no mention of
      PCI-6216):
      
        PCI\VEN_10B5&DEV_9050&SUBSYS_62089999
        PCI\VEN_144A&DEV_6208&SUBSYS_6208144A
        PCI\VEN_144A&DEV_6208&SUBSYS_62089999
        PCI\VEN_144A&DEV_6208&SUBSYS_C208144A
        PCI\VEN_144A&DEV_6208&SUBSYS_C20855AA
        PCI\VEN_144A&DEV_6208
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cd6b7660
    • H Hartley Sweeten's avatar
      staging: comedi: cb_pcimdas: add 8254 timer (pacer) support · aff0dff9
      H Hartley Sweeten authored
      The hardware has an 8254 timer/counter. Channe; 0 is available as a
      generic counter/timer with the clock, gate, and output signals all
      availabe on the main 37 pin connector. Channels 1 and 2 are used for
      the pacer.
      
      Add support for the 8254 timer.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      aff0dff9