Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hid-wacom.c File Reference
#include <linux/device.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/power_supply.h>
#include "hid-ids.h"

Go to the source code of this file.

Data Structures

struct  wacom_data
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define PAD_DEVICE_ID   0x0F
 
#define WAC_CMD_LED_CONTROL   0x20
 
#define WAC_CMD_ICON_START_STOP   0x21
 
#define WAC_CMD_ICON_TRANSFER   0x26
 
#define WACOM_STORE(OLED_ID)
 
#define OLED_INIT(OLED_ID)
 

Functions

 WACOM_STORE (0)
 
 WACOM_STORE (1)
 
 WACOM_STORE (2)
 
 WACOM_STORE (3)
 
 WACOM_STORE (4)
 
 WACOM_STORE (5)
 
 WACOM_STORE (6)
 
 WACOM_STORE (7)
 
 MODULE_DEVICE_TABLE (hid, wacom_devices)
 
 module_init (wacom_init)
 
 module_exit (wacom_exit)
 
 MODULE_DESCRIPTION ("Driver for Wacom Graphire Bluetooth and Wacom Intuos4 WL")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define OLED_INIT (   OLED_ID)
Value:
do { \
ret = device_create_file(&hdev->dev, \
&dev_attr_oled##OLED_ID##_img); \
if (ret) \
hid_warn(hdev, \
"can't create sysfs oled attribute, err: %d\n", ret);\
} while (0)
#define PAD_DEVICE_ID   0x0F

Definition at line 32 of file hid-wacom.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file hid-wacom.c.

#define WAC_CMD_ICON_START_STOP   0x21

Definition at line 35 of file hid-wacom.c.

#define WAC_CMD_ICON_TRANSFER   0x26

Definition at line 36 of file hid-wacom.c.

#define WAC_CMD_LED_CONTROL   0x20

Definition at line 34 of file hid-wacom.c.

#define WACOM_STORE (   OLED_ID)
Value:
static ssize_t wacom_oled##OLED_ID##_store(struct device *dev, \
const char *buf, size_t count) \
{ \
dev); \
if (count != 256) \
return -EINVAL; \
\
wacom_set_image(hdev, buf, OLED_ID); \
\
return count; \
} \
\
static DEVICE_ATTR(oled##OLED_ID##_img, S_IWUSR | S_IWGRP, NULL, \
wacom_oled##OLED_ID##_store)

Definition at line 409 of file hid-wacom.c.

Function Documentation

MODULE_DESCRIPTION ( "Driver for Wacom Graphire Bluetooth and Wacom Intuos4 WL )
MODULE_DEVICE_TABLE ( hid  ,
wacom_devices   
)
module_exit ( wacom_exit  )
module_init ( wacom_init  )
MODULE_LICENSE ( "GPL"  )
WACOM_STORE ( )
WACOM_STORE ( )
WACOM_STORE ( )
WACOM_STORE ( )
WACOM_STORE ( )
WACOM_STORE ( )
WACOM_STORE ( )
WACOM_STORE ( )