Skip to content

Commit

Permalink
Replace remaining references to "driverfs" with "sysfs".
Browse files Browse the repository at this point in the history
Globally, s/driverfs/sysfs/g.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
  • Loading branch information
Robert P. J. Day authored and Adrian Bunk committed Feb 17, 2007
1 parent ca82018 commit 405ae7d
Show file tree
Hide file tree
Showing 23 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion arch/i386/kernel/topology.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* arch/i386/kernel/topology.c - Populate driverfs with topology information
* arch/i386/kernel/topology.c - Populate sysfs with topology information
*
* Written by: Matthew Dobson, IBM Corporation
* Original Code: Paul Dorwin, IBM Corporation, Patrick Mochel, OSDL
Expand Down
14 changes: 7 additions & 7 deletions arch/i386/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static struct sys_device device_oprofile = {
};


static int __init init_driverfs(void)
static int __init init_sysfs(void)
{
int error;
if (!(error = sysdev_class_register(&oprofile_sysclass)))
Expand All @@ -72,15 +72,15 @@ static int __init init_driverfs(void)
}


static void exit_driverfs(void)
static void exit_sysfs(void)
{
sysdev_unregister(&device_oprofile);
sysdev_class_unregister(&oprofile_sysclass);
}

#else
#define init_driverfs() do { } while (0)
#define exit_driverfs() do { } while (0)
#define init_sysfs() do { } while (0)
#define exit_sysfs() do { } while (0)
#endif /* CONFIG_PM */

static int profile_exceptions_notify(struct notifier_block *self,
Expand Down Expand Up @@ -385,7 +385,7 @@ static int __init ppro_init(char ** cpu_type)
return 1;
}

/* in order to get driverfs right */
/* in order to get sysfs right */
static int using_nmi;

int __init op_nmi_init(struct oprofile_operations *ops)
Expand Down Expand Up @@ -440,7 +440,7 @@ int __init op_nmi_init(struct oprofile_operations *ops)
return -ENODEV;
}

init_driverfs();
init_sysfs();
using_nmi = 1;
ops->create_files = nmi_create_files;
ops->setup = nmi_setup;
Expand All @@ -456,5 +456,5 @@ int __init op_nmi_init(struct oprofile_operations *ops)
void op_nmi_exit(void)
{
if (using_nmi)
exit_driverfs();
exit_sysfs();
}
2 changes: 1 addition & 1 deletion arch/parisc/kernel/topology.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* arch/parisc/kernel/topology.c - Populate driverfs with topology information
* arch/parisc/kernel/topology.c - Populate sysfs with topology information
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ static struct sysdev_class timer_sysclass = {
set_kset_name("timer"),
};

/* XXX this driverfs stuff should probably go elsewhere later -john */
/* XXX this sysfs stuff should probably go elsewhere later -john */
static struct sys_device device_timer = {
.id = 0,
.cls = &timer_sysclass,
Expand Down
2 changes: 1 addition & 1 deletion drivers/base/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL);
#endif

/*
* register_cpu - Setup a driverfs device for a CPU.
* register_cpu - Setup a sysfs device for a CPU.
* @cpu - cpu->hotpluggable field set to 1 will generate a control file in
* sysfs for this CPU.
* @num - CPU number to use when creating the device.
Expand Down
2 changes: 1 addition & 1 deletion drivers/base/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static SYSDEV_ATTR(distance, S_IRUGO, node_read_distance, NULL);


/*
* register_node - Setup a driverfs device for a node.
* register_node - Setup a sysfs device for a node.
* @num - Node number to use when creating the device.
*
* Initialize and register the node device.
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-ali1535.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_
return -ENODEV;
}

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
ali1535_adapter.dev.parent = &dev->dev;

snprintf(ali1535_adapter.name, I2C_NAME_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-ali15x3.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_
return -ENODEV;
}

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
ali15x3_adapter.dev.parent = &dev->dev;

snprintf(ali15x3_adapter.name, I2C_NAME_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-amd756.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
dev_dbg(&pdev->dev, "SMBREV = 0x%X\n", temp);
dev_dbg(&pdev->dev, "AMD756_smba = 0x%X\n", amd756_ioport);

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
amd756_smbus.dev.parent = &pdev->dev;

sprintf(amd756_smbus.name, "SMBus %s adapter at %04x",
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-amd8111.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static int __devinit amd8111_probe(struct pci_dev *dev,
smbus->adapter.algo = &smbus_algorithm;
smbus->adapter.algo_data = smbus;

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
smbus->adapter.dev.parent = &dev->dev;

pci_write_config_dword(smbus->dev, AMD_PCI_MISC, 0);
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-i801.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ static int __devinit i801_probe(struct pci_dev *dev, const struct pci_device_id
else
dev_dbg(&dev->dev, "SMBus using PCI Interrupt\n");

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
i801_adapter.dev.parent = &dev->dev;

snprintf(i801_adapter.name, I2C_NAME_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-piix4.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static int __devinit piix4_probe(struct pci_dev *dev,
if (retval)
return retval;

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
piix4_adapter.dev.parent = &dev->dev;

snprintf(piix4_adapter.name, I2C_NAME_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sis5595.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static int __devinit sis5595_probe(struct pci_dev *dev, const struct pci_device_
return -ENODEV;
}

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
sis5595_adapter.dev.parent = &dev->dev;

sprintf(sis5595_adapter.name, "SMBus SIS5595 adapter at %04x",
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sis630.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static int __devinit sis630_probe(struct pci_dev *dev, const struct pci_device_i
return -ENODEV;
}

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
sis630_adapter.dev.parent = &dev->dev;

sprintf(sis630_adapter.name, "SMBus SIS630 adapter at %04x",
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sis96x.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static int __devinit sis96x_probe(struct pci_dev *dev,
return -EINVAL;
}

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
sis96x_adapter.dev.parent = &dev->dev;

snprintf(sis96x_adapter.name, I2C_NAME_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-via.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static int __devinit vt586b_probe(struct pci_dev *dev, const struct pci_device_i
outb(inb(I2C_DIR) & ~(I2C_SDA | I2C_SCL), I2C_DIR);
outb(inb(I2C_OUT) & ~(I2C_SDA | I2C_SCL), I2C_OUT);

/* set up the driverfs linkage to our parent device */
/* set up the sysfs linkage to our parent device */
vt586b_adapter.dev.parent = &dev->dev;

res = i2c_bit_add_bus(&vt586b_adapter);
Expand Down
12 changes: 6 additions & 6 deletions drivers/scsi/osst.c
Original file line number Diff line number Diff line change
Expand Up @@ -5574,14 +5574,14 @@ static ssize_t osst_version_show(struct device_driver *ddd, char *buf)

static DRIVER_ATTR(version, S_IRUGO, osst_version_show, NULL);

static int osst_create_driverfs_files(struct device_driver *driverfs)
static int osst_create_sysfs_files(struct device_driver *sysfs)
{
return driver_create_file(driverfs, &driver_attr_version);
return driver_create_file(sysfs, &driver_attr_version);
}

static void osst_remove_driverfs_files(struct device_driver *driverfs)
static void osst_remove_sysfs_files(struct device_driver *sysfs)
{
driver_remove_file(driverfs, &driver_attr_version);
driver_remove_file(sysfs, &driver_attr_version);
}

/*
Expand Down Expand Up @@ -5953,7 +5953,7 @@ static int __init init_osst(void)
if (err)
goto err_out_chrdev;

err = osst_create_driverfs_files(&osst_template.gendrv);
err = osst_create_sysfs_files(&osst_template.gendrv);
if (err)
goto err_out_scsidrv;

Expand All @@ -5973,7 +5973,7 @@ static void __exit exit_osst (void)
int i;
struct osst_tape * STp;

osst_remove_driverfs_files(&osst_template.gendrv);
osst_remove_sysfs_files(&osst_template.gendrv);
scsi_unregister_driver(&osst_template.gendrv);
unregister_chrdev(OSST_MAJOR, "osst");
osst_sysfs_cleanup();
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#define SCSI_TIMEOUT (2*HZ)

/*
* Prefix values for the SCSI id's (stored in driverfs name field)
* Prefix values for the SCSI id's (stored in sysfs name field)
*/
#define SCSI_UID_SER_NUM 'S'
#define SCSI_UID_UNKNOWN 'Z'
Expand Down
38 changes: 19 additions & 19 deletions drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ static int sgl_unmap_user_pages(struct scatterlist *, const unsigned int, int);
static int st_probe(struct device *);
static int st_remove(struct device *);

static int do_create_driverfs_files(void);
static void do_remove_driverfs_files(void);
static int do_create_sysfs_files(void);
static void do_remove_sysfs_files(void);
static int do_create_class_files(struct scsi_tape *, int, int);

static struct scsi_driver st_template = {
Expand Down Expand Up @@ -4193,7 +4193,7 @@ static int __init init_st(void)
if (err)
goto err_chrdev;

err = do_create_driverfs_files();
err = do_create_sysfs_files();
if (err)
goto err_scsidrv;

Expand All @@ -4211,7 +4211,7 @@ static int __init init_st(void)

static void __exit exit_st(void)
{
do_remove_driverfs_files();
do_remove_sysfs_files();
scsi_unregister_driver(&st_template.gendrv);
unregister_chrdev_region(MKDEV(SCSI_TAPE_MAJOR, 0),
ST_MAX_TAPE_ENTRIES);
Expand Down Expand Up @@ -4249,43 +4249,43 @@ static ssize_t st_version_show(struct device_driver *ddd, char *buf)
}
static DRIVER_ATTR(version, S_IRUGO, st_version_show, NULL);

static int do_create_driverfs_files(void)
static int do_create_sysfs_files(void)
{
struct device_driver *driverfs = &st_template.gendrv;
struct device_driver *sysfs = &st_template.gendrv;
int err;

err = driver_create_file(driverfs, &driver_attr_try_direct_io);
err = driver_create_file(sysfs, &driver_attr_try_direct_io);
if (err)
return err;
err = driver_create_file(driverfs, &driver_attr_fixed_buffer_size);
err = driver_create_file(sysfs, &driver_attr_fixed_buffer_size);
if (err)
goto err_try_direct_io;
err = driver_create_file(driverfs, &driver_attr_max_sg_segs);
err = driver_create_file(sysfs, &driver_attr_max_sg_segs);
if (err)
goto err_attr_fixed_buf;
err = driver_create_file(driverfs, &driver_attr_version);
err = driver_create_file(sysfs, &driver_attr_version);
if (err)
goto err_attr_max_sg;

return 0;

err_attr_max_sg:
driver_remove_file(driverfs, &driver_attr_max_sg_segs);
driver_remove_file(sysfs, &driver_attr_max_sg_segs);
err_attr_fixed_buf:
driver_remove_file(driverfs, &driver_attr_fixed_buffer_size);
driver_remove_file(sysfs, &driver_attr_fixed_buffer_size);
err_try_direct_io:
driver_remove_file(driverfs, &driver_attr_try_direct_io);
driver_remove_file(sysfs, &driver_attr_try_direct_io);
return err;
}

static void do_remove_driverfs_files(void)
static void do_remove_sysfs_files(void)
{
struct device_driver *driverfs = &st_template.gendrv;
struct device_driver *sysfs = &st_template.gendrv;

driver_remove_file(driverfs, &driver_attr_version);
driver_remove_file(driverfs, &driver_attr_max_sg_segs);
driver_remove_file(driverfs, &driver_attr_fixed_buffer_size);
driver_remove_file(driverfs, &driver_attr_try_direct_io);
driver_remove_file(sysfs, &driver_attr_version);
driver_remove_file(sysfs, &driver_attr_max_sg_segs);
driver_remove_file(sysfs, &driver_attr_fixed_buffer_size);
driver_remove_file(sysfs, &driver_attr_try_direct_io);
}


Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/host/ehci-dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static inline void remove_debug_files (struct ehci_hcd *bus) { }

#else

/* troubleshooting help: expose state in driverfs */
/* troubleshooting help: expose state in sysfs */

#define speed_char(info1) ({ char tmp; \
switch (info1 & (3 << 12)) { \
Expand Down
2 changes: 1 addition & 1 deletion fs/lockd/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static ctl_table nlm_sysctl_root[] = {
};

/*
* Module (and driverfs) parameters.
* Module (and sysfs) parameters.
*/

#define param_set_min_max(name, type, which_strtol, min, max) \
Expand Down
4 changes: 2 additions & 2 deletions include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ extern int bus_unregister_notifier(struct bus_type *bus,
#define BUS_NOTIFY_UNBIND_DRIVER 0x00000004 /* driver about to be
unbound */

/* driverfs interface for exporting bus attributes */
/* sysfs interface for exporting bus attributes */

struct bus_attribute {
struct attribute attr;
Expand Down Expand Up @@ -146,7 +146,7 @@ extern void put_driver(struct device_driver * drv);
extern struct device_driver *driver_find(const char *name, struct bus_type *bus);
extern int driver_probe_done(void);

/* driverfs interface for exporting driver attributes */
/* sysfs interface for exporting driver attributes */

struct driver_attribute {
struct attribute attr;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/moduleparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct kparam_array
};

/* This is the fundamental function for registering boot/module
parameters. perm sets the visibility in driverfs: 000 means it's
parameters. perm sets the visibility in sysfs: 000 means it's
not there, read bits mean it's readable, write bits mean it's
writable. */
#define __module_param_call(prefix, name, set, get, arg, perm) \
Expand Down

0 comments on commit 405ae7d

Please sign in to comment.