Home
last modified time | relevance | path

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

/openbmc/linux/drivers/leds/trigger/
H A Dledtrig-oneshot.c29 struct oneshot_trig_data *oneshot_data = led_trigger_get_drvdata(dev); in led_shot() local
33 oneshot_data->invert); in led_shot()
41 struct oneshot_trig_data *oneshot_data = led_trigger_get_drvdata(dev); in led_invert_show() local
43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show()
58 oneshot_data->invert = !!state; in led_invert_store()
60 if (oneshot_data->invert) in led_invert_store()
160 struct oneshot_trig_data *oneshot_data; in oneshot_trig_activate() local
162 oneshot_data = kzalloc(sizeof(*oneshot_data), GFP_KERNEL); in oneshot_trig_activate()
163 if (!oneshot_data) in oneshot_trig_activate()
166 led_set_trigger_data(led_cdev, oneshot_data); in oneshot_trig_activate()
[all …]