1
linux/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 [ARM] 3149/1: SharpSL: Add Akita (SL-C1000) machine support 2005-11-12 18:53:48 +00:00
audio.h [ALSA] Fix snd_xxx_t typedefs 2006-03-22 10:23:39 +01:00
bitfield.h
corgi.h [PATCH] SharpSL: Abstract c7x0 specifics from Corgi SSP 2005-09-13 08:22:31 -07:00
debug-macro.S [ARM] Collect 8250-based debug implementations together 2006-03-21 22:05:57 +00:00
dma.h Initial blind fixup for arm for irq changes 2006-10-06 10:59:54 -07:00
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 Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
io.h [ARM] 3631/1: Remove legacy __mem_isa() definitions 2006-06-24 10:34:48 +01:00
irda.h [ARM] 2897/2: PXA2xx IRDA support 2005-10-28 16:39:33 +01:00
irqs.h [ARM] 3902/1: Enable GPIO81-84 on PXA255 2006-10-24 22:02:48 +01:00
lpd270.h [ARM] 3417/1: add support for logicpd pxa270 card engine 2006-03-28 21:08:13 +01:00
lubbock.h
mainstone.h
memory.h [ARM] Clean up discontigmem support 2006-11-30 22:52:28 +00:00
mmc.h IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
mtd-xip.h
ohci.h [ARM] 3547/1: PXA-OHCI: Allow platforms to specify a power budget 2006-06-08 22:44:07 +01:00
pm.h [ARM] 3113/1: PXA: Allow machines to override (and also reuse) pxa pm functions 2005-11-06 15:03:23 +00:00
poodle.h [ARM] 3594/1: Poodle: Add touchscreen support + other updates 2006-06-19 20:46:05 +01:00
pxa2xx_spi.h [PATCH] spi: stabilize PIO mode transfers on PXA2xx systems 2006-12-10 09:55:40 -08:00
pxa-regs.h [ARM] 4278/1: configure pxa27x I2C SCL as "input" 2007-03-24 23:24:39 +00:00
pxafb.h [ARM] 3848/1: pxafb: Add option of fixing video modes and spitz QVGA mode support 2006-10-02 13:33:37 +01:00
sharpsl.h [PATCH] backlight: corgi_bl: Generalise to support other Sharp SL hardware 2006-03-31 12:19:00 -08:00
spitz.h [ARM] 3848/1: pxafb: Add option of fixing video modes and spitz QVGA mode support 2006-10-02 13:33:37 +01:00
ssp.h [ARM] 3760/1: This patch adds timeouts while working with SSP registers. Such timeouts were en 2006-08-27 12:54:56 +01:00
system.h [ARM] 3593/1: Add reboot and shutdown handlers for Zaurus handhelds 2006-06-19 19:57:12 +01:00
timex.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
tosa.h [ARM] 3088/1: PXA: Add machine support for the Sharp SL-6000x series of PDAs 2005-11-06 14:27:52 +00:00
trizeps4.h [ARM] 3666/1: TRIZEPS4 [1/5] core 2006-06-29 16:25:37 +01:00
udc.h [ARM] 4141/1: consolidate functions that handles gpio in pxa2xx_udc 2007-02-08 14:56:51 +00:00
uncompress.h [ARM] Fix decompressor serial IO to give CRLF not LFCR 2006-03-28 10:24:33 +01:00
vmalloc.h