1. Nov 07, 2016
    • Sameer Wadgaonkar's avatar
      staging: unisys: visorbus: remove unused initializations · c4fe36cd
      Sameer Wadgaonkar authored
      
      
      Removed intializations from visorchipset_open(), visorchipset_init()
      and moved the memset in initialize_controlvm_payload_info() down in
      case of early returns from the function.
      
      Signed-off-by: default avatarSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
      Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
      Reported-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c4fe36cd
    • Tim Sell's avatar
      staging: unisys: visorbus: convert client_bus_info sysfs to debugfs · 8217becc
      Tim Sell authored
      
      
      Previously, the sysfs entry (assuming traditional sysfs mountpoint):
      
          /sys/bus/visorbus/devices/visorbus<n>/client_bus_info
      
      violated kernel conventions by printing more than one item.  This along
      with the fact that the data emitted was diagnostic data (intended to
      shadow the client driver info provided via s-Par livedumps) made it a
      logical candidate for debugfs.  So this patch moves this sysfs entry to
      debugfs as (assuming traditional debugfs mountpoint):
      
          /sys/kernel/debug/visorbus/visorbus<n>/client_bus_info
      
      Data for this debugfs is emitted using the preferred seq_file interface,
      which allowed a vastly-simplified version of vbuschannel_print_devinfo()
      to format the individual output components.
      
      Functionality was verified as follows:
      
        [root@sparguest visorbus]# mount | grep debug
        debugfs on /sys/kernel/debug type debugfs (rw)
        [root@sparguest visorbus]# pwd
        /sys/kernel/debug/visorbus
        [root@sparguest visorbus]# l visorbus1/
        total 0
        drwxr-xr-x 2 root root 0 Sep 28 16:36 .
        drwxr-xr-x 4 root root 0 Sep 28 16:36 ..
        -r--r----- 1 root root 0 Sep 28 16:36 client_bus_info
        [root@sparguest visorbus]# l visorbus2
        total 0
        drwxr-xr-x 2 root root 0 Sep 28 16:36 .
        drwxr-xr-x 4 root root 0 Sep 28 16:36 ..
        -r--r----- 1 root root 0 Sep 28 16:36 client_bus_info
        [root@sparguest visorbus]# cat visorbus1/client_bus_info
        Client device / client driver info for s-Par Console partition (vbus #1):
           chipset          visorchipset     kernel ver. 4.8.0-rc6-ARCH+
           clientbus        visorbus         kernel ver. 4.8.0-rc6-ARCH+
        [2]keyboard         visorinput       kernel ver. 4.8.0-rc6-ARCH+
        [3]mouse            visorinput       kernel ver. 4.8.0-rc6-ARCH+
        [root@sparguest visorbus]# cat visorbus2/client_bus_info
        Client device / client driver info for s-Par IOVM partition (vbus #2):
           chipset          visorchipset     kernel ver. 4.8.0-rc6-ARCH+
           clientbus        visorbus         kernel ver. 4.8.0-rc6-ARCH+
        [0]ultravnic        visornic         kernel ver. 4.8.0-rc6-ARCH+
        [1]ultravnic        visornic         kernel ver. 4.8.0-rc6-ARCH+
        [2]sparvhba         visorhba         kernel ver. 4.8.0-rc6-ARCH+
      
      Signed-off-by: default avatarTim Sell <Timothy.Sell@unisys.com>
      Reported-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8217becc
    • Tim Sell's avatar
      staging: unisys: visorbus: move DEVICE_ATTR_RO defs as-per conventions · a25280b3
      Tim Sell authored
      
      
      The kernel convention is for DEVICE_ATTR_RO(<attr>) definitions to occur
      immediately after the functions that implement the attribute behaviors.
      DEVICE_ATTR_RO definitions in visorbus_main.c have been moved to comply
      with this convention.
      
      Signed-off-by: default avatarTim Sell <Timothy.Sell@unisys.com>
      Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a25280b3
    • Shiva Kerdel's avatar
      Staging: speakup: Remove unnecessary space after cast · d290effe
      Shiva Kerdel authored
      
      
      The affected files have been modified to remove redundant spaces after
      casts to solve checkpatch.pl checks.
      
      Signed-off-by: default avatarShiva Kerdel <shiva@exdev.nl>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d290effe
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-4.10b' of... · 7970b9e6
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-4.10b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-testing
      
      Jonathan writes:
      
      Second round of new device support, cleanups and fixes for IIO in the 4.10 cycle
      
      This includes two branch merges for elements that may also go via MFD.
      
      New device support
      * cros_ec
        - new driver to support these Chrome OS contiguous sensors which are behind
          the Chrome OS embedded controller.  Requires a few minor MFD and chrome
          platform changes.  One follow up fix deals with some dependency issues in
          Kconfig.
      * mpu-3050
        - new driver and device tree bindings for this venerable device.
      * st_accel
        - support for the lng2dm an
      
      Driver features
      * ad7192
        - Add DVdd regulator handling
      * ad9832
        - Add DVDD regulator handling
      * at91
        - Suspend and resume support
      * si7020
        - Device tree bindings
      * ti-am335x
        - DMA support - uses dma to accelerate short bursts of read back rather
        than full blown DMA buffer support.  Greatly improved performance.
        Includes an MFD addition to give access to the address needed for DMA.
      * tsl2583
        - Device tree bindings
      
      Cleanups and minor fixes
      * ad7192
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
        - Rename reg variable to reflect which regulator it is
      * ad5933
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
      * ad7746
        - Fix a missing return value (fallout from previous patch set)
      * ad7780
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
      * ad9832
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
        - Rename reg regulator to reflect which one it is
      * ad9834
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
      * hts221
        - Remove a duplicated include
      * maxim thermocouple
        - Handle a wrong storage side in read function.  Prevent any problems that
        might be introduced by additions to this driver in future.
      * tsl2583 - big set from Brian Masney to drive this towards a staging
        graduation.
        - Convert to iio_chan_spec and read_raw / write_raw (in a couple of steps)
        - Improved error handling in various functions
        - Drop redundant power_state custom sysfs attribute.
        - Use IIO_*_ATTR* macros for remaining attributes.
        - Return an error code to userspace on invalid parameters being writen to
          sysfs files.
        - Add locking to various attribute accesses to remove possible races.
        - Add defines for various magic numbers.
        - Use smbus_read_byte_data instead of a write_byte followed by read_byte.
        - Query only relevant registers in probe.
        - Tidy up ordering of code comments.
        - Remove a pointless power off sequence in taos_chip_on.
        - Don't bother shutting down the chip when updating the lux table.
        The table is held entirely in the driver and doesn't effect the chip at all.
        - Drop a redundant i2c call in taos_als_calibrate where the same register
        is read twice in a row.
      7970b9e6
  2. Nov 06, 2016
  3. Nov 02, 2016
  4. Oct 30, 2016