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