1. 23 8月, 2017 1 次提交
  2. 01 5月, 2017 1 次提交
  3. 26 4月, 2017 2 次提交
    • B
      staging: iio: isl29028: move out of staging · 105c3de1
      Brian Masney 提交于
      Move ISL29028 ALS / Proximity Sensor out of staging and into mainline.
      Signed-off-by: NBrian Masney <masneyb@onstation.org>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      105c3de1
    • B
      staging: iio: isl29028: correct proximity sleep times · e4ff6c1b
      Brian Masney 提交于
      The sysfs attribute in_proximity_sampling_frequency_available currently
      shows the values 1 3 5 10 13 20 83 100. These values are supposed to
      correspond to the sleep values 800 400 200 100 75 50 12.5 0 (all in ms).
      When passing in a sampling frequency of 3, it actually uses a sleep
      time of 200ms instead of the expected 400ms value. This patch changes
      the value shown by this sysfs attribute to use fixed-point numbers so
      that the correct sampling frequency is shown to the user. This patch
      also changes the code that updates the proximity sampling frequency to
      only allow values that are shown in the _available sysfs attribute.
      
      The original code showed the value 83 that corresponds to the sleep
      time 12 ms. The data sheet actually lists 12.5 ms as the sleep time,
      so the proximity frequency was updated to 80.
      Signed-off-by: NBrian Masney <masneyb@onstation.org>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      e4ff6c1b
  4. 11 2月, 2017 4 次提交
  5. 22 1月, 2017 15 次提交
  6. 04 12月, 2016 3 次提交
  7. 25 7月, 2016 1 次提交
  8. 10 7月, 2016 4 次提交
  9. 20 3月, 2016 1 次提交
    • A
      staging: iio: isl29028: use regmap to retrieve struct device · 722fc316
      Alison Schofield 提交于
      Driver includes struct regmap and struct device in its global data.
      Remove the struct device and use regmap API to retrieve device info.
      
      Simplified version of Coccinelle semantic patch used:
      
      @ a @
      identifier drvdata, r;
      position p;
      @@
        struct drvdata@p {
        ...
        struct regmap *r;
        ...
        };
      
      @ b @
      identifier a.drvdata, d;
      position a.p;
      @@
        struct drvdata@p {
        ...
      - struct device *d;
        ...
        };
      
      @ passed depends on b @
      identifier a.drvdata, a.r, b.d, i, f;
      @@
        f (..., struct drvdata *i ,...) {
      + struct device *dev = regmap_get_device(i->r);
         <+...
      -	   i->d
      +	   dev
         ...+>
        }
      Signed-off-by: NAlison Schofield <amsfield22@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      722fc316
  10. 21 2月, 2016 1 次提交
  11. 15 2月, 2016 1 次提交
  12. 04 10月, 2015 1 次提交
  13. 12 8月, 2015 1 次提交
  14. 12 7月, 2015 1 次提交
  15. 07 3月, 2015 1 次提交
    • H
      Staging: iio: clean dev_err logging · 3daf9df3
      Haneen Mohammed 提交于
      This patch removes  __func__ from dev_err. dev_err includes information about:
      (devcice, driver, specific instance of device, etc) in the log printout.
      This was done using Coccinelle, with the following semantic patch:
      
      @a@
      expression E, R;
      expression  msg;
      @@
      
      dev_err(E, msg, __func__, R);
      
      @script:python b@
      e << a.msg;
      y;
      @@
      
      if(e.find("%s: ") == True):
      	m = e.replace("%s: ", "", 1);
      	coccinelle.y = m;
      elif(e.find("%s ") == True):
      	m = e.replace("%s ", "", 1);
      	coccinelle.y = m;
      elif(e.find("%s:") == True):
      	m = e.replace("%s:", "", 1);
      	coccinelle.y = m;
      else:
      	m = e.replace("%s", "",1);
      	coccinelle.y = m;
      
      @c@
      expression a.E, a.msg, a.R;
      identifier  b.y;
      @@
      
      - dev_err(E, msg, __func__, R);
      + dev_err(E, y, R);
      Signed-off-by: NHaneen Mohammed <hamohammed.sa@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3daf9df3
  16. 17 2月, 2015 1 次提交
    • A
      staging: iio: isl29028: deprecate use of isl in compatible string for isil · 37e5157d
      Arnaud Ebalard 提交于
      "isil" and "isl" prefixes are used at various locations inside the kernel
      to reference Intersil corporation.  This patch is part of a series fixing
      those locations were "isl" is used in compatible strings to use the now
      expected "isil" prefix instead (NASDAQ symbol for Intersil and most used
      version).  The old compatible string is kept for backward compatibility.
      Signed-off-by: NArnaud Ebalard <arno@natisbad.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
      Cc: Kumar Gala <galak@codeaurora.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Cc: Uwe Kleine-Knig <uwe@kleine-koenig.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Peter Huewe <peter.huewe@infineon.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Darshana Padmadas <darshanapadmadas@gmail.com>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Rob Landley <rob@landley.net>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
      Cc: Uwe Kleine-König <uwe@kleine-koenig.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      37e5157d
  17. 20 11月, 2014 1 次提交