android_kernel_samsung_msm8976/include/asm-arm/arch-pxa
Matej Kenda a79220b763 [ARM] 4246/1: i2c-pxa: add adapter class to platform specific data
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: Matej Kenda <matej.kenda@hermes-softlab.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2007-04-21 20:36:55 +01:00
..
akita.h
audio.h
bitfield.h
corgi.h
debug-macro.S
dma.h
entry-macro.S [ARM] 4185/2: entry: introduce get_irqnr_preamble and arch_ret_to_user 2007-02-17 15:04:29 +00:00
gpio.h [PATCH] gpio_direction_output() needs an initial value 2007-03-16 19:25:04 -07:00
hardware.h [PATCH] GPIO API: PXA wrapper cleanup 2007-02-20 17:10:16 -08:00
i2c.h [ARM] 4246/1: i2c-pxa: add adapter class to platform specific data 2007-04-21 20:36:55 +01:00
idp.h
io.h
irda.h
irqs.h [ARM] 3902/1: Enable GPIO81-84 on PXA255 2006-10-24 22:02:48 +01:00
lpd270.h
lubbock.h
mainstone.h
memory.h [ARM] Clean up discontigmem support 2006-11-30 22:52:28 +00:00
mmc.h
mtd-xip.h
ohci.h
pm.h
poodle.h
pxa-regs.h [ARM] 4278/1: configure pxa27x I2C SCL as "input" 2007-03-24 23:24:39 +00:00
pxa2xx_spi.h [PATCH] spi: stabilize PIO mode transfers on PXA2xx systems 2006-12-10 09:55:40 -08:00
pxafb.h
sharpsl.h
spitz.h
ssp.h
system.h
timex.h
tosa.h
trizeps4.h
udc.h [ARM] 4141/1: consolidate functions that handles gpio in pxa2xx_udc 2007-02-08 14:56:51 +00:00
uncompress.h
vmalloc.h