1. 03 May, 2019 2 commits
  2. 23 Apr, 2019 2 commits
  3. 22 Apr, 2019 2 commits
  4. 20 Apr, 2019 1 commit
  5. 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
  6. 17 Apr, 2019 21 commits
  7. 16 Apr, 2019 10 commits