/* * Camera Flash and Torch On/Off Trigger * * based on ledtrig-ide-disk.c * * Copyright 2013 Texas Instruments * * Author: Milo(Woogyom) Kim <milo.kim@ti.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/leds.h> DEFINE_LED_TRIGGER(ledtrig_flash); DEFINE_LED_TRIGGER(ledtrig_torch);
void ledtrig_flash_ctrl(bool on) { enum led_brightness brt = on ? LED_FULL : LED_OFF; led_trigger_event(ledtrig_flash, brt); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
kim milo | kim milo | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
kim milo | kim milo | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
kim milo | kim milo | 28 | 100.00% | 1 | 100.00% |
Total | 28 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
kim milo | kim milo | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
kim milo | kim milo | 155 | 100.00% | 1 | 100.00% |
Total | 155 | 100.00% | 1 | 100.00% |