[PATCH] 2.6 I2C re-add i2c_get_client()

stefan.eletzhofer_at_eletztrick.de
Date: 04/29/04

  • Next message: Ian Campbell: "Re: [PATCH] 2.6 I2C epson 8564 RTC chip"
    Date:	Thu, 29 Apr 2004 16:06:57 +0200
    To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
    
    
    

    Hi,
    here's a patch which re-adds i2c_get_client() back to i2c_core.c.
    That call was removed in 2003 because there were no users of that
    function at that time.

    I think this call is needed for I2C chip drivers which provide functionality to
    be used by other driver modules, for example RTC chips or EEPROMs. These chip
    drivers tend to encapsulate raw i2c chip access and provide function calls
    for other modulesi, for example via the i2c_driver->command() method.

    I tried to get the locking right, so please comment. The patch is
    against 2.6.6-rc3 and works quite fine with my i2c rtc chip.

    Thanks,
            Stefan E.

    -- 
    Eletztrick Computing - Customized Linux Development
    Stefan Eletzhofer, Marktstrasse 43, DE-88214 Ravensburg
    http://www.eletztrick.de
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Ian Campbell: "Re: [PATCH] 2.6 I2C epson 8564 RTC chip"

    Relevant Pages