diff options
Diffstat (limited to 'drivers/hwmon/lis3lv02d.h')
-rw-r--r-- | drivers/hwmon/lis3lv02d.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/hwmon/lis3lv02d.h b/drivers/hwmon/lis3lv02d.h index 62c6652eb9d5..eb5db584eb0e 100644 --- a/drivers/hwmon/lis3lv02d.h +++ b/drivers/hwmon/lis3lv02d.h | |||
@@ -223,10 +223,11 @@ enum lis3lv02d_click_src_8b { | |||
223 | CLICK_IA = 0x40, | 223 | CLICK_IA = 0x40, |
224 | }; | 224 | }; |
225 | 225 | ||
226 | struct axis_conversion { | 226 | union axis_conversion { |
227 | s8 x; | 227 | struct { |
228 | s8 y; | 228 | int x, y, z; |
229 | s8 z; | 229 | }; |
230 | int as_array[3]; | ||
230 | }; | 231 | }; |
231 | 232 | ||
232 | struct lis3lv02d { | 233 | struct lis3lv02d { |
@@ -249,7 +250,7 @@ struct lis3lv02d { | |||
249 | struct input_polled_dev *idev; /* input device */ | 250 | struct input_polled_dev *idev; /* input device */ |
250 | struct platform_device *pdev; /* platform device */ | 251 | struct platform_device *pdev; /* platform device */ |
251 | atomic_t count; /* interrupt count after last read */ | 252 | atomic_t count; /* interrupt count after last read */ |
252 | struct axis_conversion ac; /* hw -> logical axis */ | 253 | union axis_conversion ac; /* hw -> logical axis */ |
253 | int mapped_btns[3]; | 254 | int mapped_btns[3]; |
254 | 255 | ||
255 | u32 irq; /* IRQ number */ | 256 | u32 irq; /* IRQ number */ |