Blame view
include/linux/leds-pca9532.h
1014 Bytes
e14fa8243 leds: Add pca9532... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
/* * 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/leds.h> |
934cd3f97 leds: leds-pcs953... |
18 |
#include <linux/workqueue.h> |
e14fa8243 leds: Add pca9532... |
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
enum pca9532_state { PCA9532_OFF = 0x0, PCA9532_ON = 0x1, PCA9532_PWM0 = 0x2, PCA9532_PWM1 = 0x3 }; enum pca9532_type { PCA9532_TYPE_NONE, PCA9532_TYPE_LED, PCA9532_TYPE_N2100_BEEP }; struct pca9532_led { u8 id; struct i2c_client *client; char *name; struct led_classdev ldev; |
9695fff8f leds: leds-pca953... |
35 |
struct work_struct work; |
e14fa8243 leds: Add pca9532... |
36 37 38 39 40 41 42 43 44 45 46 |
enum pca9532_type type; enum pca9532_state state; }; struct pca9532_platform_data { struct pca9532_led leds[16]; u8 pwm[2]; u8 psc[2]; }; #endif /* __LINUX_PCA9532_H */ |