1. 27 9月, 2006 8 次提交
    • J
      i2c-algo-sibyte: Merge into i2c-sibyte · 51c37117
      Jean Delvare 提交于
      i2c-algo-sibyte: Merge into i2c-sibyte
      
      Merge i2c-algo-sibyte into i2c-sibyte, as this is a complete,
      hardware-dependent SMBus implementation and not a reusable algorithm.
      
      Perform some basic coding style cleanups while we're here (mainly
      space-based indentation replaced by tabulations.)
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      51c37117
    • J
      i2c-algo-sibyte: Cleanups · 3fd39687
      Jean Delvare 提交于
      i2c-algo-sibyte: Cleanups
      
      * Delete empty algo_control implementation.
      * Simplify i2c_sibyte_del_bus.
      * Delete empty module init and cleanup functions.
      * Drop out-of-date #ifdef MODULE construct.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3fd39687
    • J
      i2c: __must_check fixes, i2c-dev · defcb46e
      Jean Delvare 提交于
      i2c: __must_check fixes (i2c-dev)
      
      Check for error on sysfs file creation.
      Check for error on device creation.
      Delete sysfs file on device destruction.
      
      I couldn't test this one beyond compilation, as it applies on top of
      another patch in Greg's tree [1] which breaks all my systems when I
      apply it (my udev isn't recent enough.) Anyone with bleeding edge udev
      is welcome to test and report.
      
      [1] http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/i2c/i2c-dev-device.patchSigned-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      defcb46e
    • J
      i2c: __must_check fixes (core drivers) · b119c6c9
      Jean Delvare 提交于
      i2c: __must_check fixes (core drivers)
      
      Check for error on sysfs file creation.
      Check for error on device registration.
      Check for error on class device registration.
      
      Greg, I am not familiar with completion, can you please tell me if I
      need to take care of it in the error paths (as I did in this patch,
      see /* Needed? */ comments), or if it isn't needed?
      
      These patches were tested, including forced errors, so they should work
      fine. But of course more testing can't hurt.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b119c6c9
    • J
      i2c-dev: Drop the client template · 22f76e74
      Jean Delvare 提交于
      i2c-dev: Drop the client template
      
      Drop the i2c-dev client template. This saves about 360 bytes of
      memory. I got the idea from a similar cleanup Hans-Frieder Vogt
      made to i2c-nforce2 recently.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      22f76e74
    • J
      i2c-dev: Use a list for data storage · f3b3aadb
      Jean Delvare 提交于
      i2c-dev: Use a list for data storage
      
      Use a list instead of a static array for storing the i2c-dev data.
      Given that most systems have less than 10 i2c busses, most of the
      space was wasted, so this saves around 1 kB of memory (2 kB on 64-bit
      archs.)
      
      The drawback is that lookup was in O(1) and is now in O(N), but given
      that the values of N are always small, I don't think this is a problem.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f3b3aadb
    • J
      i2c-dev: Cleanups · 9455e4c9
      Jean Delvare 提交于
      i2c-dev: Cleanups
      
      * We no more need to include platform_device.h.
      * Delete the to_i2c_dev macro, which is no more used (and no more valid
        either.) 
      * Drop i2c_dev.minor. Now that the minor number always matches the i2c
        adapter number, this field is redundant with i2c_dev.adap->nr.
      * Delete i2c_dev_get_by_adapter() which is now redundant with
        i2c_dev_get_by_minor() for the same reason.
      * Drop the local variable dev in i2cdev_attach_adapter(), we can
        easily do without it.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      9455e4c9
    • L
      Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 · dd77a4ee
      Linus Torvalds 提交于
      * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (47 commits)
        Driver core: Don't call put methods while holding a spinlock
        Driver core: Remove unneeded routines from driver core
        Driver core: Fix potential deadlock in driver core
        PCI: enable driver multi-threaded probe
        Driver Core: add ability for drivers to do a threaded probe
        sysfs: add proper sysfs_init() prototype
        drivers/base: check errors
        drivers/base: Platform notify needs to occur before drivers attach to the device
        v4l-dev2: handle __must_check
        add CONFIG_ENABLE_MUST_CHECK
        add __must_check to device management code
        Driver core: fixed add_bind_files() definition
        Driver core: fix comments in drivers/base/power/resume.c
        sysfs_remove_bin_file: no return value, dump_stack on error
        kobject: must_check fixes
        Driver core: add ability for devices to create and remove bin files
        Class: add support for class interfaces for devices
        Driver core: create devices/virtual/ tree
        Driver core: add device_rename function
        Driver core: add ability for classes to handle devices properly
        ...
      dd77a4ee
  2. 26 9月, 2006 32 次提交