do a s/driver_file_entry/device_attribute/g on all of them.
return off ? 0 : sprintf(buf,"%u\n",pci_dev->irq);
}
-static struct driver_file_entry pci_irq_entry = {
+static struct device_attribute pci_irq_entry = {
name: "irq",
mode: S_IRUGO,
show: pci_show_irq,
return (str - buf);
}
-static struct driver_file_entry pci_resource_entry = {
+static struct device_attribute pci_resource_entry = {
name: "resources",
mode: S_IRUGO,
show: pci_show_resources,
return 0;
}
-static struct driver_file_entry scsi_device_type_file = {
+static struct device_attribute scsi_device_type_file = {
name: "type",
mode: S_IRUGO,
show: scsi_device_type_read,
Sg_device * sdp=list_entry(driverfs_dev, Sg_device, sg_driverfs_dev);
return off ? 0 : sprintf(page, "%x\n",sdp->i_rdev.value);
}
-static struct driver_file_entry sg_device_kdev_file = {
+static struct device_attribute sg_device_kdev_file = {
name: "kdev",
mode: S_IRUGO,
show: sg_device_kdev_read,
{
return off ? 0 : sprintf (page, "CHR\n");
}
-static struct driver_file_entry sg_device_type_file = {
+static struct device_attribute sg_device_type_file = {
name: "type",
mode: S_IRUGO,
show: sg_device_type_read,
kdev.value=(int)driverfs_dev->driver_data;
return off ? 0 : sprintf(page, "%x\n",kdev.value);
}
-static struct driver_file_entry sr_device_kdev_file = {
+static struct device_attribute sr_device_kdev_file = {
name: "kdev",
mode: S_IRUGO,
show: sr_device_kdev_read,
{
return off ? 0 : sprintf (page, "CHR\n");
}
-static struct driver_file_entry sr_device_type_file = {
+static struct device_attribute sr_device_type_file = {
name: "type",
mode: S_IRUGO,
show: sr_device_type_read,
kdev.value=(int)driverfs_dev->driver_data;
return off ? 0 : sprintf(page, "%x\n",kdev.value);
}
-static struct driver_file_entry st_device_kdev_file = {
+static struct device_attribute st_device_kdev_file = {
name: "kdev",
mode: S_IRUGO,
show: st_device_kdev_read,
{
return off ? 0 : sprintf (page, "CHR\n");
}
-static struct driver_file_entry st_device_type_file = {
+static struct device_attribute st_device_type_file = {
name: "type",
mode: S_IRUGO,
show: st_device_type_read,
udev = to_usb_device (dev);
return sprintf (buf, "%u\n", udev->actconfig->bConfigurationValue);
}
-static struct driver_file_entry usb_config_entry = {
+static struct device_attribute usb_config_entry = {
.name = "configuration",
.mode = S_IRUGO,
.show = show_config,
interface = to_usb_interface (dev);
return sprintf (buf, "%u\n", interface->altsetting->bAlternateSetting);
}
-static struct driver_file_entry usb_altsetting_entry = {
+static struct device_attribute usb_altsetting_entry = {
.name = "altsetting",
.mode = S_IRUGO,
.show = show_altsetting,
buf[len+1] = 0x00;
return len+1;
}
-static struct driver_file_entry usb_product_entry = {
+static struct device_attribute usb_product_entry = {
.name = "product",
.mode = S_IRUGO,
.show = show_product,
buf[len+1] = 0x00;
return len+1;
}
-static struct driver_file_entry usb_manufacturer_entry = {
+static struct device_attribute usb_manufacturer_entry = {
.name = "manufacturer",
.mode = S_IRUGO,
.show = show_manufacturer,
buf[len+1] = 0x00;
return len+1;
}
-static struct driver_file_entry usb_serial_entry = {
+static struct device_attribute usb_serial_entry = {
.name = "serial",
.mode = S_IRUGO,
.show = show_serial,
kdev.value=(int)(long)driverfs_dev->driver_data;
return off ? 0 : sprintf (page, "%x\n",kdev.value);
}
-static struct driver_file_entry partition_device_kdev_file = {
+static struct device_attribute partition_device_kdev_file = {
name: "kdev",
mode: S_IRUGO,
show: partition_device_kdev_read,
{
return off ? 0 : sprintf (page, "BLK\n");
}
-static struct driver_file_entry partition_device_type_file = {
+static struct device_attribute partition_device_type_file = {
name: "type",
mode: S_IRUGO,
show: partition_device_type_read,