1. 21 3月, 2011 1 次提交
  2. 05 6月, 2009 1 次提交
  3. 03 10月, 2008 1 次提交
  4. 09 9月, 2008 1 次提交
  5. 07 8月, 2008 1 次提交
  6. 28 1月, 2008 1 次提交
  7. 22 4月, 2007 1 次提交
    • M
      [ARM] 4246/1: i2c-pxa: add adapter class to platform specific data · a79220b7
      Matej Kenda 提交于
      Reposted patch for kernel 2.6.21-rc2.
      
      The driver i2c-pxa doesn't set the class member in i2c_adapter, which
      is used to register the I2C adapter. The hwmon (sensors) drivers (e.g.
      adm1021) that are connected to a i2c-pxa adapter don't attach because
      they expect that the adapter supports class I2C_CLASS_HWMON.
      
      This patch adds functionality to allow platforms to set the class and
      pass it as platform_data to the i2c-pxa driver. Sample usage in
      platform code:
      
      static struct i2c_pxa_platform_data my_i2c_platform_data = {
      	.class = I2C_CLASS_HWMON
      };
      
      static void __init my_platform_init(void)
      {
      	(void) platform_add_devices(devices, ARRAY_SIZE(devices));
      
      	pxa_set_i2c_info(&my_i2c_platform_data);
      }
      Signed-off-by: NMatej Kenda <matej.kenda@hermes-softlab.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      a79220b7
  8. 15 6月, 2005 1 次提交