// SPDX-License-Identifier: GPL-2.0-only /* * LED Disk Activity Trigger * * Copyright 2006 Openedhand Ltd. * * Author: Richard Purdie <[email protected]> */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/leds.h> #define BLINK_DELAY … DEFINE_LED_TRIGGER(ledtrig_disk); DEFINE_LED_TRIGGER(ledtrig_disk_read); DEFINE_LED_TRIGGER(ledtrig_disk_write); void ledtrig_disk_activity(bool write) { … } EXPORT_SYMBOL(…); static int __init ledtrig_disk_init(void) { … } device_initcall(ledtrig_disk_init);