Re: [patch 2.6.24-rc6-mm 8/9] gpiolib: pca9539 i2c gpio expandersupport

From: Jean Delvare
Date: Sun Jan 06 2008 - 08:00:00 EST


On Sat, 5 Jan 2008 11:40:55 -0800, David Brownell wrote:
> From: eric miao <eric.miao@xxxxxxxxxxx>
> Subject: [PATCH] gpiolib: support PCA9539 GPIO expander
>
> This adds a new-style I2C driver with basic support for the sixteen
> bit PCA9539 GPIO expanders. These chips have multiple registers,
> push-pull output drivers, and (not supported in this patch) pin
> change interrupts.
>
> Board-specific code must provide "pca9539_platform_data" with each
> chip's "i2c_board_info". That provides the GPIO numbers to be used
> by that chip, and callbacks for board-specific setup/teardown logic.
>
> Derived from drivers/i2c/chips/pca9539.c (which has no current known
> users). This is faster and simpler; it uses 16-bit register access,
> and cache the OUTPUT and DIRECTION registers for fast access
>
> Signed-off-by: eric miao <eric.miao@xxxxxxxxxxx>
> Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
> ---
> Incorporates cleanups noted by Jean Delvare.
>
> drivers/gpio/Kconfig | 10 +
> drivers/gpio/Makefile | 1
> drivers/gpio/pca9539.c | 271 ++++++++++++++++++++++++++++++++++++++++++++
> include/linux/i2c/pca9539.h | 18 ++
> 4 files changed, 300 insertions(+)

Acked-by: Jean Delvare <khali@xxxxxxxxxxxx>

--
Jean Delvare
--
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/