Source
35
35
36
36
/*
37
37
* The Network Space v2 dual-GPIO LED is wired to a CPLD. Three different LED
38
38
* modes are available: off, on and SATA activity blinking. The LED modes are
39
39
* controlled through two GPIOs (command and slow): each combination of values
40
40
* for the command/slow GPIOs corresponds to a LED mode.
41
41
*/
42
42
43
43
struct ns2_led_data {
44
44
struct led_classdev cdev;
45
-
unsigned cmd;
46
-
unsigned slow;
45
+
unsigned int cmd;
46
+
unsigned int slow;
47
47
bool can_sleep;
48
48
unsigned char sata; /* True when SATA mode active. */
49
49
rwlock_t rw_lock; /* Lock GPIOs. */
50
50
int num_modes;
51
51
struct ns2_led_modval *modval;
52
52
};
53
53
54
54
static int ns2_led_get_mode(struct ns2_led_data *led_dat,
55
55
enum ns2_led_modes *mode)
56
56
{