1. 21 Mar, 2019 34 commits
  2. 20 Mar, 2019 6 commits
    • Michael Straube's avatar
      staging: rtl8188eu: remove unused WFD defines · ac22353f
      Michael Straube authored
      All defined WFD* in wifi.h are unused in the driver code,
      so remove them.
      Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ac22353f
    • Wentao Cai's avatar
      Staging: unisys: Correct malformed SPDX-License-Identifier · a7265633
      Wentao Cai authored
      Correct SPDX-License-Identifier comment characters to silence
      checkpatch.pl warning:
      WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
      Signed-off-by: default avatarWentao Cai <etsai042@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a7265633
    • Ian Abbott's avatar
      staging: comedi: ni_mio_common: use insn->n in ni_m_series_eeprom_insn_read() · 49634aa7
      Ian Abbott authored
      The `insn_read` handler for the EEPROM subdevice on M-series boards
      (`ni_m_series_eeprom_insn_read()`) currently ignores `insn->n` (the
      number of samples to read) and assumes a single sample is to be read
      into `data[0]`.  Fortunately, the Comedi core ensures that `data[]` has
      a length of at least 16 so there is no problem with array bounds.
      
      The usual Comedi convention for `insn_read` handlers is to read the same
      channel `insn->n` times into successive elements of `data[]` so let's do
      that.  (Each channel corresponds to a single EEPROM address.)  In this
      case, the data value comes from a local copy of the EEPROM contents.
      
      Also, follow the usual Comedi convention and return `insn->n` from the
      handler to indicate success (although any non-negative value will do).
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      49634aa7
    • Ian Abbott's avatar
      staging: comedi: ni_mio_common: use insn->n in ni_eeprom_insn_read() · 018768cc
      Ian Abbott authored
      The `insn_read` handler for the EEPROM subdevice on E-series boards
      (`ni_eeprom_insn_read()`) currently ignores `insn->n` (the number of
      samples to read) and assumes a single sample is to be read into
      `data[0]`.  Fortunately, the Comedi core ensures that `data[]` has a
      length of at least 16 so there is no problem with array bounds.
      
      The usual Comedi convention for `insn_read` handlers is to read the same
      channel `insn->n` times into successive elements of `data[]` so let's do
      that.  (Each channel number corresponds to a single EEPROM address.)
      Since we do not expect the EEPROM data at a particular address to change
      between readings, let's just read it once and copy the value `insn->n`
      times.
      
      Also, follow the usual Comedi convention and return `insn->n` from the
      handler to indicate success (although any non-negative value will do).
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      018768cc
    • Ian Abbott's avatar
      staging: comedi: ni_mio_common: use insn->n in ni_calib_insn_read() · 776d25ff
      Ian Abbott authored
      The `insn_read` handler for the calibration subdevice
      (`ni_calib_insn_read()`) currently ignores `insn->n` (the number of
      samples to read) and assumes a single sample is to be read into
      `data[0]`.  Fortunately, the Comedi core ensures that `data[]` has a
      length of at least 16, so there is no problem with array bounds.
      
      The usual Comedi convention for `insn_read` handlers is to read the same
      channel `insn->n` times into successive elements of `data[]`, so let's
      do that.
      
      Also, follow the usual Comedi convention and return `insn->n` from the
      handler to indicate success (although any non-negative value will do).
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      776d25ff
    • Ian Abbott's avatar
      staging: comedi: ni_mio_common: Use insn->n in ni_calib_insn_write() · fe57d1e1
      Ian Abbott authored
      The `insn_write` handler for the calibration subdevice
      (`ni_calib_insn_write()`) currently ignores `insn->n` (the number of
      samples to write) and assumes a single sample is to be written, but
      `insn->n` could be 0, meaning no samples should be written, in which
      case `data[0]` is invalid.
      
      Change `ni_calib_insn_write()` to only write to the calibration device
      if `insn->n > 0`.  There isn't much point writing all the values when
      `insn->n > 1`, so just write the last one (`data[insn->n - 1]`).
      
      Also follow the usual Comedi convention and return `insn->n` from the
      handler to indicate success (although any non-negative return value will
      do as far as the Comedi core is concerned).
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fe57d1e1