Home
last modified time | relevance | path

Searched refs:activity_data (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/leds/trigger/
H A Dledtrig-activity.c23 struct activity_data { struct
35 struct activity_data *activity_data = from_timer(activity_data, t, in led_activity_function() argument
37 struct led_classdev *led_cdev = activity_data->led_cdev; in led_activity_function()
79 diff_boot = (curr_boot - activity_data->last_boot) >> 16; in led_activity_function()
80 diff_used = (curr_used - activity_data->last_used) >> 16; in led_activity_function()
81 activity_data->last_boot = curr_boot; in led_activity_function()
82 activity_data->last_used = curr_used; in led_activity_function()
126 activity_data->time_left -= 100; in led_activity_function()
127 if (activity_data->time_left <= 0) { in led_activity_function()
128 activity_data->time_left = 0; in led_activity_function()
[all …]