i2c writes different sizes

From: Veda N
Date: Tue May 27 2008 - 02:50:26 EST


Hi,
I am writing a kernel module that makes lots of i2c writes.

Each write is different. Some writes need only device command and data.
Some need device command, <some more paramters> <data>

there are different ways of doing this. but i want to know how it is done
in standard way. if it is simple read/write of 8 or 16 bit register write.
it is easy. but in my case instead of register address it is command
and command takes lots of parameters. which is different for different
commands. i am a newbie and i dont know how to do it.

Are there any drivers that implement such a mechanism.

I want help so that i can see how it is done in standard way
and implement it in my own module.


Thanks you.

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