wacom.h (8d58b66ed2b000f27658c88a4ed70e8042e86a58) | wacom.h (72b236d60218fe211a8e1210be31c31e81684b86) |
---|---|
1/* 2 * drivers/input/tablet/wacom.h 3 * 4 * USB Wacom tablet support 5 * 6 * Copyright (c) 2000-2004 Vojtech Pavlik <vojtech@ucw.cz> 7 * Copyright (c) 2000 Andreas Bach Aaen <abach@stofanet.dk> 8 * Copyright (c) 2000 Clifford Wolf <clifford@clifford.at> --- 99 unchanged lines hidden (view full) --- 108struct wacom { 109 struct usb_device *usbdev; 110 struct usb_interface *intf; 111 struct wacom_wac wacom_wac; 112 struct hid_device *hdev; 113 struct mutex lock; 114 struct work_struct work; 115 struct wacom_led { | 1/* 2 * drivers/input/tablet/wacom.h 3 * 4 * USB Wacom tablet support 5 * 6 * Copyright (c) 2000-2004 Vojtech Pavlik <vojtech@ucw.cz> 7 * Copyright (c) 2000 Andreas Bach Aaen <abach@stofanet.dk> 8 * Copyright (c) 2000 Clifford Wolf <clifford@clifford.at> --- 99 unchanged lines hidden (view full) --- 108struct wacom { 109 struct usb_device *usbdev; 110 struct usb_interface *intf; 111 struct wacom_wac wacom_wac; 112 struct hid_device *hdev; 113 struct mutex lock; 114 struct work_struct work; 115 struct wacom_led { |
116 u8 select[2]; /* status led selector (0..3) */ | 116 u8 select[5]; /* status led selector (0..3) */ |
117 u8 llv; /* status led brightness no button (1..127) */ 118 u8 hlv; /* status led brightness button pressed (1..127) */ 119 u8 img_lum; /* OLED matrix display brightness */ 120 } led; 121 bool led_initialized; 122 struct power_supply *battery; 123 struct power_supply *ac; 124 struct power_supply_desc battery_desc; 125 struct power_supply_desc ac_desc; | 117 u8 llv; /* status led brightness no button (1..127) */ 118 u8 hlv; /* status led brightness button pressed (1..127) */ 119 u8 img_lum; /* OLED matrix display brightness */ 120 } led; 121 bool led_initialized; 122 struct power_supply *battery; 123 struct power_supply *ac; 124 struct power_supply_desc battery_desc; 125 struct power_supply_desc ac_desc; |
126 struct kobject *remote_dir; 127 struct attribute_group remote_group[5]; |
|
126}; 127 128static inline void wacom_schedule_work(struct wacom_wac *wacom_wac) 129{ 130 struct wacom *wacom = container_of(wacom_wac, struct wacom, wacom_wac); 131 schedule_work(&wacom->work); 132} 133 --- 8 unchanged lines hidden (view full) --- 142int wacom_setup_pad_input_capabilities(struct input_dev *input_dev, 143 struct wacom_wac *wacom_wac); 144void wacom_wac_usage_mapping(struct hid_device *hdev, 145 struct hid_field *field, struct hid_usage *usage); 146int wacom_wac_event(struct hid_device *hdev, struct hid_field *field, 147 struct hid_usage *usage, __s32 value); 148void wacom_wac_report(struct hid_device *hdev, struct hid_report *report); 149void wacom_battery_work(struct work_struct *work); | 128}; 129 130static inline void wacom_schedule_work(struct wacom_wac *wacom_wac) 131{ 132 struct wacom *wacom = container_of(wacom_wac, struct wacom, wacom_wac); 133 schedule_work(&wacom->work); 134} 135 --- 8 unchanged lines hidden (view full) --- 144int wacom_setup_pad_input_capabilities(struct input_dev *input_dev, 145 struct wacom_wac *wacom_wac); 146void wacom_wac_usage_mapping(struct hid_device *hdev, 147 struct hid_field *field, struct hid_usage *usage); 148int wacom_wac_event(struct hid_device *hdev, struct hid_field *field, 149 struct hid_usage *usage, __s32 value); 150void wacom_wac_report(struct hid_device *hdev, struct hid_report *report); 151void wacom_battery_work(struct work_struct *work); |
152int wacom_remote_create_attr_group(struct wacom *wacom, __u32 serial, 153 int index); 154void wacom_remote_destroy_attr_group(struct wacom *wacom, __u32 serial); |
|
150#endif | 155#endif |