2 * pca9532.h - platform data structure for pca9532 led controller
4 * Copyright (C) 2008 Riku Voipio <riku.voipio@movial.fi>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * Datasheet: http://www.nxp.com/acrobat/datasheets/PCA9532_3.pdf
14 #ifndef __LINUX_PCA9532_H
15 #define __LINUX_PCA9532_H
17 #include <linux/leds.h>
18 #include <linux/workqueue.h>
27 enum pca9532_type
{ PCA9532_TYPE_NONE
, PCA9532_TYPE_LED
,
28 PCA9532_TYPE_N2100_BEEP
, PCA9532_TYPE_GPIO
};
32 struct i2c_client
*client
;
34 struct led_classdev ldev
;
35 struct work_struct work
;
36 enum pca9532_type type
;
37 enum pca9532_state state
;
40 struct pca9532_platform_data
{
41 struct pca9532_led leds
[16];
47 #endif /* __LINUX_PCA9532_H */