1. 22 Apr, 2019 1 commit
    • Mauro Carvalho Chehab's avatar
      docs: hwmon: convert three docs to ReST format · e57695e7
      Mauro Carvalho Chehab authored
      Those three new drivers were missed on the initial conversion
      to ReST format. So:
      
      - Rename them to .rst;
      - Add them to the hwmon index.rst index;
      - add some blank lines at the "Supported systems:" part, in
        order to allow Sphinx to properly identify new lines,
        suppressing warnings and avoid it to output some random
        lines in bold;
      - When multiple authors are involved, change the authors
        part to a list, in order to avoid adding blank lines.
      - adjust the table cells (one of the tables seemed to be
        assuming that tab is 4 positions instead of 8) and add
        the table markup.
      - be sure that the section markups have the same number of
        characters as the section title.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      e57695e7
  2. 20 Apr, 2019 1 commit
  3. 18 Apr, 2019 2 commits
    • Nicolin Chen's avatar
      hwmon: (ina3221) Add voltage conversion time settings · 023912db
      Nicolin Chen authored
      The CONFIG register has two 3-bit fields for conversion time
      settings of Bus-voltage and Shunt-voltage, respectively. The
      conversion settings, along with averaging mode, allow users
      to optimize available timing requirement.
      
      This patch adds an 'update_interval' sysfs node through the
      hwmon_chip_info of hwmon core. It reflects a total hardware
      conversion time:
          samples * channels * (Bus + Shunt conversion times)
      
      Though INA3221 supports different conversion time setups for
      Bus and Shunt voltages, this patch only adds the support of
      a unified setting for both conversion times, by dividing the
      conversion time into two equal values.
      Signed-off-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
      [groeck: .rst related formatting changes in documentation]
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      023912db
    • Nicolin Chen's avatar
      hwmon: (ina3221) Do not read-back to cache reg_config · 521c0b61
      Nicolin Chen authored
      Reading back the CONFIG register increases an extra I2C
      transaction. This's not necessary and could be replaced
      with a local variable caching the register settings.
      
      So this patch replaces two readback regmap_read() calls
      with a tmp variable.
      Signed-off-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      521c0b61
  4. 17 Apr, 2019 21 commits
  5. 16 Apr, 2019 15 commits