cregit-Linux how code gets into the kernel

Release 4.11 drivers/leds/trigger/ledtrig-disk.c

/*
 * LED Disk Activity Trigger
 *
 * Copyright 2006 Openedhand Ltd.
 *
 * Author: Richard Purdie <rpurdie@openedhand.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/kernel.h>
#include <linux/init.h>
#include <linux/leds.h>


#define BLINK_DELAY 30


DEFINE_LED_TRIGGER(ledtrig_disk);

DEFINE_LED_TRIGGER(ledtrig_ide);


void ledtrig_disk_activity(void) { unsigned long blink_delay = BLINK_DELAY; led_trigger_blink_oneshot(ledtrig_disk, &blink_delay, &blink_delay, 0); led_trigger_blink_oneshot(ledtrig_ide, &blink_delay, &blink_delay, 0); }

Contributors

PersonTokensPropCommitsCommitProp
Stephan Linz1743.59%125.00%
Richard Purdie1230.77%125.00%
Jacek Anaszewski512.82%125.00%
Fabio Baltieri512.82%125.00%
Total39100.00%4100.00%

EXPORT_SYMBOL(ledtrig_disk_activity);
static int __init ledtrig_disk_init(void) { led_trigger_register_simple("disk-activity", &ledtrig_disk); led_trigger_register_simple("ide-disk", &ledtrig_ide); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Richard Purdie1967.86%150.00%
Stephan Linz932.14%150.00%
Total28100.00%2100.00%

device_initcall(ledtrig_disk_init);

Overall Contributors

PersonTokensPropCommitsCommitProp
Richard Purdie5251.49%120.00%
Stephan Linz3433.66%120.00%
Fabio Baltieri98.91%120.00%
Jacek Anaszewski54.95%120.00%
Paul Gortmaker10.99%120.00%
Total101100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.