Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58466
b: refs/heads/master
c: 5c659c6
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Jul 10, 2007
1 parent 9ad48e4 commit 4cec469
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 74 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b40ed088bb14ebed30540b19d5c417dc4d9d528
refs/heads/master: 5c659c62f9f60633a8de17bd17afaa448f1e1d68
73 changes: 0 additions & 73 deletions trunk/drivers/input/tablet/aiptek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,71 +1022,6 @@ static ssize_t show_tabletSize(struct device *dev, struct device_attribute *attr
*/
static DEVICE_ATTR(size, S_IRUGO, show_tabletSize, NULL);

/***********************************************************************
* support routines for the 'product_id' file
*/
static ssize_t show_tabletProductId(struct device *dev, struct device_attribute *attr, char *buf)
{
struct aiptek *aiptek = dev_get_drvdata(dev);

if (aiptek == NULL)
return 0;

return snprintf(buf, PAGE_SIZE, "0x%04x\n",
aiptek->inputdev->id.product);
}

static DEVICE_ATTR(product_id, S_IRUGO, show_tabletProductId, NULL);

/***********************************************************************
* support routines for the 'vendor_id' file
*/
static ssize_t show_tabletVendorId(struct device *dev, struct device_attribute *attr, char *buf)
{
struct aiptek *aiptek = dev_get_drvdata(dev);

if (aiptek == NULL)
return 0;

return snprintf(buf, PAGE_SIZE, "0x%04x\n", aiptek->inputdev->id.vendor);
}

static DEVICE_ATTR(vendor_id, S_IRUGO, show_tabletVendorId, NULL);

/***********************************************************************
* support routines for the 'vendor' file
*/
static ssize_t show_tabletManufacturer(struct device *dev, struct device_attribute *attr, char *buf)
{
struct aiptek *aiptek = dev_get_drvdata(dev);
int retval;

if (aiptek == NULL)
return 0;

retval = snprintf(buf, PAGE_SIZE, "%s\n", aiptek->usbdev->manufacturer);
return retval;
}

static DEVICE_ATTR(vendor, S_IRUGO, show_tabletManufacturer, NULL);

/***********************************************************************
* support routines for the 'product' file
*/
static ssize_t show_tabletProduct(struct device *dev, struct device_attribute *attr, char *buf)
{
struct aiptek *aiptek = dev_get_drvdata(dev);
int retval;

if (aiptek == NULL)
return 0;

retval = snprintf(buf, PAGE_SIZE, "%s\n", aiptek->usbdev->product);
return retval;
}

static DEVICE_ATTR(product, S_IRUGO, show_tabletProduct, NULL);

/***********************************************************************
* support routines for the 'pointer_mode' file. Note that this file
* both displays current setting and allows reprogramming.
Expand Down Expand Up @@ -1867,10 +1802,6 @@ static DEVICE_ATTR(firmware_code, S_IRUGO, show_firmwareCode, NULL);
static void aiptek_delete_files(struct device *dev)
{
device_remove_file(dev, &dev_attr_size);
device_remove_file(dev, &dev_attr_product_id);
device_remove_file(dev, &dev_attr_vendor_id);
device_remove_file(dev, &dev_attr_vendor);
device_remove_file(dev, &dev_attr_product);
device_remove_file(dev, &dev_attr_pointer_mode);
device_remove_file(dev, &dev_attr_coordinate_mode);
device_remove_file(dev, &dev_attr_tool_mode);
Expand Down Expand Up @@ -1901,10 +1832,6 @@ static int aiptek_add_files(struct device *dev)
int ret;

if ((ret = device_create_file(dev, &dev_attr_size)) ||
(ret = device_create_file(dev, &dev_attr_product_id)) ||
(ret = device_create_file(dev, &dev_attr_vendor_id)) ||
(ret = device_create_file(dev, &dev_attr_vendor)) ||
(ret = device_create_file(dev, &dev_attr_product)) ||
(ret = device_create_file(dev, &dev_attr_pointer_mode)) ||
(ret = device_create_file(dev, &dev_attr_coordinate_mode)) ||
(ret = device_create_file(dev, &dev_attr_tool_mode)) ||
Expand Down

0 comments on commit 4cec469

Please sign in to comment.