File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 18
18
/* MCU controller I2C address 0x2a, needed for detecting MCU features */
19
19
#define OMNIA_MCU_I2C_ADDR 0x2a
20
20
21
+ /**
22
+ * struct omnia_led - per-LED part of driver private data structure
23
+ * @mc_cdev: multi-color LED class device
24
+ * @subled_info: per-channel information
25
+ * @cached_channels: cached values of per-channel brightness that was sent to the MCU
26
+ * @on: whether the LED was set on
27
+ * @hwtrig: whether the LED blinking was offloaded to the MCU
28
+ * @reg: LED identifier to the MCU
29
+ */
21
30
struct omnia_led {
22
31
struct led_classdev_mc mc_cdev ;
23
32
struct mc_subled subled_info [OMNIA_LED_NUM_CHANNELS ];
@@ -28,6 +37,13 @@ struct omnia_led {
28
37
29
38
#define to_omnia_led (l ) container_of(l, struct omnia_led, mc_cdev)
30
39
40
+ /**
41
+ * struct omnia_leds - driver private data structure
42
+ * @client: I2C client device
43
+ * @lock: mutex to protect cached state
44
+ * @has_gamma_correction: whether the MCU firmware supports gamma correction
45
+ * @leds: flexible array of per-LED data
46
+ */
31
47
struct omnia_leds {
32
48
struct i2c_client * client ;
33
49
struct mutex lock ;
You can’t perform that action at this time.
0 commit comments