1. 28 3月, 2012 1 次提交
  2. 19 3月, 2012 2 次提交
    • G
      hwmon: (fschmd) Fix checkpatch issues · 525ad373
      Guenter Roeck 提交于
      Fixed:
      ERROR: that open brace { should be on the previous line
      ERROR: trailing statements should be on next line
      WARNING: line over 80 characters
      WARNING: simple_strtol is obsolete, use kstrtol instead
      WARNING: simple_strtoul is obsolete, use kstrtoul instead
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Cc: Hans de Goede <hdegoede@redhat.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      525ad373
    • A
      hwmon: convert drivers/hwmon/* to use module_i2c_driver() · f0967eea
      Axel Lin 提交于
      This patch converts the drivers in drivers/hwmon/* to use the
      module_i2c_driver() macro which makes the code smaller and a bit simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Riku Voipio <riku.voipio@iki.fi>
      Cc: Guillaume Ligneul <guillaume.ligneul@gmail.com>
      Cc: David George <david.george@ska.ac.za>
      Cc: "Hans J. Koch" <hjk@hansjkoch.de>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      f0967eea
  3. 13 1月, 2011 1 次提交
  4. 05 10月, 2010 1 次提交
    • A
      drivers: autoconvert trivial BKL users to private mutex · 613655fa
      Arnd Bergmann 提交于
      All these files use the big kernel lock in a trivial
      way to serialize their private file operations,
      typically resulting from an earlier semi-automatic
      pushdown from VFS.
      
      None of these drivers appears to want to lock against
      other code, and they all use the BKL as the top-level
      lock in their file operations, meaning that there
      is no lock-order inversion problem.
      
      Consequently, we can remove the BKL completely,
      replacing it with a per-file mutex in every case.
      Using a scripted approach means we can avoid
      typos.
      
      These drivers do not seem to be under active
      maintainance from my brief investigation. Apologies
      to those maintainers that I have missed.
      
      file=$1
      name=$2
      if grep -q lock_kernel ${file} ; then
          if grep -q 'include.*linux.mutex.h' ${file} ; then
                  sed -i '/include.*<linux\/smp_lock.h>/d' ${file}
          else
                  sed -i 's/include.*<linux\/smp_lock.h>.*$/include <linux\/mutex.h>/g' ${file}
          fi
          sed -i ${file} \
              -e "/^#include.*linux.mutex.h/,$ {
                      1,/^\(static\|int\|long\)/ {
                           /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex);
      
      } }"  \
          -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \
          -e '/[      ]*cycle_kernel_lock();/d'
      else
          sed -i -e '/include.*\<smp_lock.h\>/d' ${file}  \
                      -e '/cycle_kernel_lock()/d'
      fi
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      613655fa
  5. 17 5月, 2010 1 次提交
  6. 06 3月, 2010 1 次提交
  7. 25 1月, 2010 1 次提交
  8. 15 12月, 2009 3 次提交
  9. 10 12月, 2009 1 次提交
  10. 24 10月, 2009 1 次提交
  11. 02 10月, 2009 1 次提交
  12. 31 3月, 2009 3 次提交
  13. 07 1月, 2009 2 次提交
  14. 06 1月, 2009 1 次提交
  15. 17 7月, 2008 1 次提交
  16. 19 2月, 2008 1 次提交
  17. 08 2月, 2008 2 次提交
  18. 11 10月, 2007 1 次提交