~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/leds.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
extern void led_trigger_unregister_simple(struct led_trigger *trigger);
146
146
extern void led_trigger_event(struct led_trigger *trigger,
147
147
                                enum led_brightness event);
 
148
extern void led_trigger_blink(struct led_trigger *trigger,
 
149
                              unsigned long *delay_on,
 
150
                              unsigned long *delay_off);
148
151
 
149
152
#else
150
153
 
194
197
 
195
198
struct gpio_led_platform_data {
196
199
        int             num_leds;
197
 
        struct gpio_led *leds;
 
200
        const struct gpio_led *leds;
198
201
 
199
202
#define GPIO_LED_NO_BLINK_LOW   0       /* No blink GPIO state low */
200
203
#define GPIO_LED_NO_BLINK_HIGH  1       /* No blink GPIO state high */
201
 
#define GPIO_LED_BLINK          2       /* Plase, blink */
 
204
#define GPIO_LED_BLINK          2       /* Please, blink */
202
205
        int             (*gpio_blink_set)(unsigned gpio, int state,
203
206
                                        unsigned long *delay_on,
204
207
                                        unsigned long *delay_off);
205
208
};
206
209
 
 
210
struct platform_device *gpio_led_register_device(
 
211
                int id, const struct gpio_led_platform_data *pdata);
207
212
 
208
213
#endif          /* __LINUX_LEDS_H_INCLUDED */