1. 19 Jan, 2017 9 commits
    • Vaibhav Agarwal's avatar
      staging: greybus: audio: Avoid less than zero check for le32 variable · 84510052
      Vaibhav Agarwal authored
      mixer control->info call back function checks for -ve values to rebase
      min and max values. However, le32 variable is used to fetch values from
      GB module FW. Thus negative value checking is not required. Fix this!!
      Signed-off-by: default avatarVaibhav Agarwal <vaibhav.sr@gmail.com>
      Acked-by: default avatarMark Greer <mgreer@animalcreek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      84510052
    • Igor Pylypiv's avatar
      staging: greybus: loopback_test: use octal permissions instead of symbolic · e965af6b
      Igor Pylypiv authored
      checkpatch.pl warning:
      Symbolic permissions are not preferred. Consider using octal permissions.
      Signed-off-by: default avatarIgor Pylypiv <igor.pylypiv@gmail.com>
      Reviewed-by: default avatarJohan Hovold <johan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e965af6b
    • Stefano Manni's avatar
      staging: fbtft: replace decimal with 4-digit octal permissions · 0367cd00
      Stefano Manni authored
      Following error detected by checkpatch.pl:
      
      ERROR: Use 4 digit octal (0777) not decimal permissions
      Signed-off-by: default avatarStefano Manni <stefano.manni@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0367cd00
    • Pierre-Yves Kerbrat's avatar
      staging: rtl8188eu: fix type sign of len in rtw_get_bcn_info · ca366962
      Pierre-Yves Kerbrat authored
      len was declared unsigned int where we use an int
      
      Fix sparse (-Wtypesign) issues:
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1081:88: warning: incorrect type in argument 3 (different signedness)
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1081:88:    expected int *len
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1081:88:    got unsigned int *<noident>
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1091:86: warning: incorrect type in argument 3 (different signedness)
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1091:86:    expected int *len
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1091:86:    got unsigned int *<noident>
      Signed-off-by: default avatarPierre-Yves Kerbrat <pkerbrat@free.fr>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ca366962
    • Pierre-Yves Kerbrat's avatar
      staging: rtl8188eu: fix type of wpa_ielen in rtw_get_cipher_info · 84f2634d
      Pierre-Yves Kerbrat authored
      wpa_ielen was declared u32 when we actually use an int
      
      Fix sparse (-Wtypesign) issues:
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1008:60: warning: incorrect type in argument 2 (different signedness)
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1008:60:    expected int *wpa_ie_len
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1008:60:    got unsigned int *<noident>
      drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1021:69: warning: incorrect type in argument 2 (different signedness)
      Signed-off-by: default avatarPierre-Yves Kerbrat <pkerbrat@free.fr>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      84f2634d
    • Abdul Rauf's avatar
      staging: unisys: visorbus: fix checkpatch block comments warning · 6d380a1e
      Abdul Rauf authored
      Fix the following warnings:
      Block comments should align the * on each line
      Signed-off-by: default avatarAbdul Rauf <abdulraufmujahid@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6d380a1e
    • Ian Abbott's avatar
      staging: comedi: ni_pcimio: Support more PXI cards · 910f404a
      Ian Abbott authored
      Add support for NI PXI-6220, PXI-6221, PXI-6229, PXI-6250, PXI-6254,
      PXI-6259, PXIe-6259, PXI-6280, PXI-6284, and PXI-6289 boards, treating
      them the same as the correspondingly numbered PCI and PCIe boards (apart
      from having different Comedi board name strings).  The same has
      previously been done for other PXI boards supported by the driver.
      
      The PCI device IDs for the newly supported boards come from the
      "nixswv.inf" file in National Instrument's Windows drivers.
      
      Also, sort `ni_pcimio_pci_table[]` by PCI device ID.  It is mostly
      sorted already, so only the entries for PXI-6251 and PXIe-6251 need
      moving.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      910f404a
    • Ian Abbott's avatar
      staging: comedi: ni_660x: Support PCI-6224 · 0d0ad829
      Ian Abbott authored
      Add support for the NI PCI-6224 board, assuming it behaves like the NI
      PXI-6224 board at the register level.
      
      The PCI device ID comes from the "nitiowv.inf" file in National
      Instrument's Windows drivers.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0d0ad829
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-4.11a' of... · 4463c3e7
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-4.11a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      First round of new device support, features and cleanups for IIO in the 4.11 cycle.
      
      It's shaping to be another fairly busy cycle. Lots more on the way!
      
      New device support
      * ads7950
        - new driver supporting ads7950, ads7951, ads7952, ads7953, ads7954,
        ads7955, ads7956, ads7957, ads7958, ads7959, ads7960, and ads7961 ADCs.
      * cm3605
        - New driver for this light sensor and proximity sensor  which is an
        analog part with some additional digital controls.
      * hx711
        - New driver.
      
      Core new stuff
      * Gravity sensor type.  This is a processed datastream in which the device
      will try to work out which way is down.
      * Split the buffer.h file into two parts. One provides the interface to 'use'
      a buffer, the second provides the internals of the buffer functionality as
      needed by implementations of buffers.
        - Move documentation inline so as to allow use of private: tag when
        generating documentation.
        - Add some utility functions for the few things that are directly done
        with the buffers.
        - Stop exporting functions that no-one uses outside of the core code.
        - Push docs down by the code in the c file where they should have always
        been.
        - Fix typo in kernel-doc for buffer.
        - push down some includes that were previously happening implicitly.
        - stop enabling the timestamp of the dummy device.
      
      Features and cleanups
      * ad5592r
        - ACPI support
      * ad5593r
        -ACPI support.
      * ad5933
        - Fix a false comment about size of a particular register.
      * ad7150
        - replace S_IRUGO | S_IWUSR with 0644.  I'm not that keen on these patches
        in general, but as it was nicely presented I took this one anyway. As a
        general rule will only take these as part of a larger driver cleanup.
        - don't eat an error but rather reutnr it in the write_event_config callback.
      * ad7606
        - replace non standard range attibute with _scale
      * ade7753
        - use usleep_range for short sleeps
      * ade7754
        - use usleep_range for short sleeps
      * ade7758
        - use usleep_range for short sleeps
      * ade7759
        - use usleep_range for short sleeps
      * ade7854
        - use usleep_range for short sleeps
      * adis16201
        - fix description
      * adis16203
        - fix description
        - fix copyright year
      * adis16209
        - fix description
      * adt7316
        - Add braces to arms of if else statement (for consistency)
        - Alignment fixes.
      * axp288
        - Fix up an issue with accidental overwrites of data.
      * bmi160
        - add deivce tables for i2c and spi to support correctly identifying the
        full dt name (including manufacturer).
        - device tree binding.
      * bmp280
        - use usleep_range for short sleeps.
      * cm3232
        - return error from cm3232_reg_init rather than eating it if the last write
        fails.
      * dummy driver
        - remove a semicolor found at end of a function defintition.
      * exynos-adc
        - use usleep_range for short sleeps.
      * hid-sensor (accel)
        - Add timestamp support.  The hardware can provide timestamps so lets support
        them. If not fall back to timestamps estimated in kernel.
      * hid-sensor (light)
        - Add a duplicate ID for the light channels so as to keep existing interface
        whilst also using the more standard IIO interface.
      * hts221
        - acpi probing
      * imx25-gcq
        - Add a macro call to allow this driver to be automatically loaded.
      * isl29028
        - reorganise code to avoid deep nesting of if statements.
        - move chip test and default regs into a function suitable or sharing with
        power management code.
        - tidy up some code alignment.
      * lidar-lite-v3
        - introduce compatible strings that make it clear Garmin have consideral
        friends.
      * mma8452
        - avoid returning signed value when unsigned is appropriate
      * spmi-vadc
        - Update function for generic voltage conversion to take into account that
        different channels on this device should be handled differently.
        - Rework code to allow per channel voltage scaling and support the standard
        options for this hardware.
        - Fixup three minor issues with the above patches for this part. These all
        effect test builds rather than the native builds for the part, but good to
        clean them up anyway.
      * st_sensors
        - support device matching from the ACPI DST tables.
        - acpi based probing for accelerometers
        - acpi based probing for pressure sensors
        - Allow pressure sensors to read negative values.
        - Export sampling frequency for lps25h and lps331ap.
        - Add support for the old DT bindings from the period when these deivces
        were often supported through windows.
      
      Docs fixup:
      * typo in sysfs-bus-iio
      4463c3e7
  2. 16 Jan, 2017 31 commits