cregit-Linux how code gets into the kernel

Release 4.7 drivers/leds/trigger/ledtrig-default-on.c

/*
 * LED Kernel Default ON Trigger
 *
 * Copyright 2008 Nick Forbes <nick.forbes@incepta.com>
 *
 * Based on Richard Purdie's ledtrig-timer.c.
 *
 * 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>
#include "../leds.h"


static void defon_trig_activate(struct led_classdev *led_cdev) { led_set_brightness_nosleep(led_cdev, led_cdev->max_brightness); }

Contributors

PersonTokensPropCommitsCommitProp
nick forbesnick forbes1680.00%133.33%
guennadi liakhovetskiguennadi liakhovetski315.00%133.33%
jacek anaszewskijacek anaszewski15.00%133.33%
Total20100.00%3100.00%

static struct led_trigger defon_led_trigger = { .name = "default-on", .activate = defon_trig_activate, };
static int __init defon_trig_init(void) { return led_trigger_register(&defon_led_trigger); }

Contributors

PersonTokensPropCommitsCommitProp
nick forbesnick forbes16100.00%1100.00%
Total16100.00%1100.00%


static void __exit defon_trig_exit(void) { led_trigger_unregister(&defon_led_trigger); }

Contributors

PersonTokensPropCommitsCommitProp
nick forbesnick forbes15100.00%1100.00%
Total15100.00%1100.00%

module_init(defon_trig_init); module_exit(defon_trig_exit); MODULE_AUTHOR("Nick Forbes <nick.forbes@incepta.com>"); MODULE_DESCRIPTION("Default-ON LED trigger"); MODULE_LICENSE("GPL");

Overall Contributors

PersonTokensPropCommitsCommitProp
nick forbesnick forbes10495.41%125.00%
guennadi liakhovetskiguennadi liakhovetski32.75%125.00%
kim milokim milo10.92%125.00%
jacek anaszewskijacek anaszewski10.92%125.00%
Total109100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}