Commit 405ae7d381302468ecc803f2148a2ae40a04c999
Committed by
Adrian Bunk
1 parent
ca820181fc
Exists in
master
and in
7 other branches
Replace remaining references to "driverfs" with "sysfs".
Globally, s/driverfs/sysfs/g. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Showing 23 changed files with 53 additions and 53 deletions Side-by-side Diff
- arch/i386/kernel/topology.c
- arch/i386/oprofile/nmi_int.c
- arch/parisc/kernel/topology.c
- arch/x86_64/kernel/time.c
- drivers/base/cpu.c
- drivers/base/node.c
- drivers/i2c/busses/i2c-ali1535.c
- drivers/i2c/busses/i2c-ali15x3.c
- drivers/i2c/busses/i2c-amd756.c
- drivers/i2c/busses/i2c-amd8111.c
- drivers/i2c/busses/i2c-i801.c
- drivers/i2c/busses/i2c-piix4.c
- drivers/i2c/busses/i2c-sis5595.c
- drivers/i2c/busses/i2c-sis630.c
- drivers/i2c/busses/i2c-sis96x.c
- drivers/i2c/busses/i2c-via.c
- drivers/scsi/osst.c
- drivers/scsi/scsi_scan.c
- drivers/scsi/st.c
- drivers/usb/host/ehci-dbg.c
- fs/lockd/svc.c
- include/linux/device.h
- include/linux/moduleparam.h
arch/i386/kernel/topology.c
arch/i386/oprofile/nmi_int.c
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | }; |
64 | 64 | |
65 | 65 | |
66 | -static int __init init_driverfs(void) | |
66 | +static int __init init_sysfs(void) | |
67 | 67 | { |
68 | 68 | int error; |
69 | 69 | if (!(error = sysdev_class_register(&oprofile_sysclass))) |
70 | 70 | |
... | ... | @@ -72,15 +72,15 @@ |
72 | 72 | } |
73 | 73 | |
74 | 74 | |
75 | -static void exit_driverfs(void) | |
75 | +static void exit_sysfs(void) | |
76 | 76 | { |
77 | 77 | sysdev_unregister(&device_oprofile); |
78 | 78 | sysdev_class_unregister(&oprofile_sysclass); |
79 | 79 | } |
80 | 80 | |
81 | 81 | #else |
82 | -#define init_driverfs() do { } while (0) | |
83 | -#define exit_driverfs() do { } while (0) | |
82 | +#define init_sysfs() do { } while (0) | |
83 | +#define exit_sysfs() do { } while (0) | |
84 | 84 | #endif /* CONFIG_PM */ |
85 | 85 | |
86 | 86 | static int profile_exceptions_notify(struct notifier_block *self, |
... | ... | @@ -385,7 +385,7 @@ |
385 | 385 | return 1; |
386 | 386 | } |
387 | 387 | |
388 | -/* in order to get driverfs right */ | |
388 | +/* in order to get sysfs right */ | |
389 | 389 | static int using_nmi; |
390 | 390 | |
391 | 391 | int __init op_nmi_init(struct oprofile_operations *ops) |
... | ... | @@ -440,7 +440,7 @@ |
440 | 440 | return -ENODEV; |
441 | 441 | } |
442 | 442 | |
443 | - init_driverfs(); | |
443 | + init_sysfs(); | |
444 | 444 | using_nmi = 1; |
445 | 445 | ops->create_files = nmi_create_files; |
446 | 446 | ops->setup = nmi_setup; |
... | ... | @@ -456,6 +456,6 @@ |
456 | 456 | void op_nmi_exit(void) |
457 | 457 | { |
458 | 458 | if (using_nmi) |
459 | - exit_driverfs(); | |
459 | + exit_sysfs(); | |
460 | 460 | } |
arch/parisc/kernel/topology.c
1 | 1 | /* |
2 | - * arch/parisc/kernel/topology.c - Populate driverfs with topology information | |
2 | + * arch/parisc/kernel/topology.c - Populate sysfs with topology information | |
3 | 3 | * |
4 | 4 | * This program is free software; you can redistribute it and/or modify |
5 | 5 | * it under the terms of the GNU General Public License as published by |
arch/x86_64/kernel/time.c
... | ... | @@ -418,7 +418,7 @@ |
418 | 418 | set_kset_name("timer"), |
419 | 419 | }; |
420 | 420 | |
421 | -/* XXX this driverfs stuff should probably go elsewhere later -john */ | |
421 | +/* XXX this sysfs stuff should probably go elsewhere later -john */ | |
422 | 422 | static struct sys_device device_timer = { |
423 | 423 | .id = 0, |
424 | 424 | .cls = &timer_sysclass, |
drivers/base/cpu.c
... | ... | @@ -103,7 +103,7 @@ |
103 | 103 | #endif |
104 | 104 | |
105 | 105 | /* |
106 | - * register_cpu - Setup a driverfs device for a CPU. | |
106 | + * register_cpu - Setup a sysfs device for a CPU. | |
107 | 107 | * @cpu - cpu->hotpluggable field set to 1 will generate a control file in |
108 | 108 | * sysfs for this CPU. |
109 | 109 | * @num - CPU number to use when creating the device. |
drivers/base/node.c
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-ali15x3.c
drivers/i2c/busses/i2c-amd756.c
... | ... | @@ -374,7 +374,7 @@ |
374 | 374 | dev_dbg(&pdev->dev, "SMBREV = 0x%X\n", temp); |
375 | 375 | dev_dbg(&pdev->dev, "AMD756_smba = 0x%X\n", amd756_ioport); |
376 | 376 | |
377 | - /* set up the driverfs linkage to our parent device */ | |
377 | + /* set up the sysfs linkage to our parent device */ | |
378 | 378 | amd756_smbus.dev.parent = &pdev->dev; |
379 | 379 | |
380 | 380 | sprintf(amd756_smbus.name, "SMBus %s adapter at %04x", |
drivers/i2c/busses/i2c-amd8111.c
... | ... | @@ -371,7 +371,7 @@ |
371 | 371 | smbus->adapter.algo = &smbus_algorithm; |
372 | 372 | smbus->adapter.algo_data = smbus; |
373 | 373 | |
374 | - /* set up the driverfs linkage to our parent device */ | |
374 | + /* set up the sysfs linkage to our parent device */ | |
375 | 375 | smbus->adapter.dev.parent = &dev->dev; |
376 | 376 | |
377 | 377 | pci_write_config_dword(smbus->dev, AMD_PCI_MISC, 0); |
drivers/i2c/busses/i2c-i801.c
... | ... | @@ -522,7 +522,7 @@ |
522 | 522 | else |
523 | 523 | dev_dbg(&dev->dev, "SMBus using PCI Interrupt\n"); |
524 | 524 | |
525 | - /* set up the driverfs linkage to our parent device */ | |
525 | + /* set up the sysfs linkage to our parent device */ | |
526 | 526 | i801_adapter.dev.parent = &dev->dev; |
527 | 527 | |
528 | 528 | snprintf(i801_adapter.name, I2C_NAME_SIZE, |
drivers/i2c/busses/i2c-piix4.c
... | ... | @@ -425,7 +425,7 @@ |
425 | 425 | if (retval) |
426 | 426 | return retval; |
427 | 427 | |
428 | - /* set up the driverfs linkage to our parent device */ | |
428 | + /* set up the sysfs linkage to our parent device */ | |
429 | 429 | piix4_adapter.dev.parent = &dev->dev; |
430 | 430 | |
431 | 431 | snprintf(piix4_adapter.name, I2C_NAME_SIZE, |
drivers/i2c/busses/i2c-sis5595.c
... | ... | @@ -384,7 +384,7 @@ |
384 | 384 | return -ENODEV; |
385 | 385 | } |
386 | 386 | |
387 | - /* set up the driverfs linkage to our parent device */ | |
387 | + /* set up the sysfs linkage to our parent device */ | |
388 | 388 | sis5595_adapter.dev.parent = &dev->dev; |
389 | 389 | |
390 | 390 | sprintf(sis5595_adapter.name, "SMBus SIS5595 adapter at %04x", |
drivers/i2c/busses/i2c-sis630.c
... | ... | @@ -477,7 +477,7 @@ |
477 | 477 | return -ENODEV; |
478 | 478 | } |
479 | 479 | |
480 | - /* set up the driverfs linkage to our parent device */ | |
480 | + /* set up the sysfs linkage to our parent device */ | |
481 | 481 | sis630_adapter.dev.parent = &dev->dev; |
482 | 482 | |
483 | 483 | sprintf(sis630_adapter.name, "SMBus SIS630 adapter at %04x", |
drivers/i2c/busses/i2c-sis96x.c
drivers/i2c/busses/i2c-via.c
... | ... | @@ -138,7 +138,7 @@ |
138 | 138 | outb(inb(I2C_DIR) & ~(I2C_SDA | I2C_SCL), I2C_DIR); |
139 | 139 | outb(inb(I2C_OUT) & ~(I2C_SDA | I2C_SCL), I2C_OUT); |
140 | 140 | |
141 | - /* set up the driverfs linkage to our parent device */ | |
141 | + /* set up the sysfs linkage to our parent device */ | |
142 | 142 | vt586b_adapter.dev.parent = &dev->dev; |
143 | 143 | |
144 | 144 | res = i2c_bit_add_bus(&vt586b_adapter); |
drivers/scsi/osst.c
... | ... | @@ -5574,14 +5574,14 @@ |
5574 | 5574 | |
5575 | 5575 | static DRIVER_ATTR(version, S_IRUGO, osst_version_show, NULL); |
5576 | 5576 | |
5577 | -static int osst_create_driverfs_files(struct device_driver *driverfs) | |
5577 | +static int osst_create_sysfs_files(struct device_driver *sysfs) | |
5578 | 5578 | { |
5579 | - return driver_create_file(driverfs, &driver_attr_version); | |
5579 | + return driver_create_file(sysfs, &driver_attr_version); | |
5580 | 5580 | } |
5581 | 5581 | |
5582 | -static void osst_remove_driverfs_files(struct device_driver *driverfs) | |
5582 | +static void osst_remove_sysfs_files(struct device_driver *sysfs) | |
5583 | 5583 | { |
5584 | - driver_remove_file(driverfs, &driver_attr_version); | |
5584 | + driver_remove_file(sysfs, &driver_attr_version); | |
5585 | 5585 | } |
5586 | 5586 | |
5587 | 5587 | /* |
... | ... | @@ -5953,7 +5953,7 @@ |
5953 | 5953 | if (err) |
5954 | 5954 | goto err_out_chrdev; |
5955 | 5955 | |
5956 | - err = osst_create_driverfs_files(&osst_template.gendrv); | |
5956 | + err = osst_create_sysfs_files(&osst_template.gendrv); | |
5957 | 5957 | if (err) |
5958 | 5958 | goto err_out_scsidrv; |
5959 | 5959 | |
... | ... | @@ -5973,7 +5973,7 @@ |
5973 | 5973 | int i; |
5974 | 5974 | struct osst_tape * STp; |
5975 | 5975 | |
5976 | - osst_remove_driverfs_files(&osst_template.gendrv); | |
5976 | + osst_remove_sysfs_files(&osst_template.gendrv); | |
5977 | 5977 | scsi_unregister_driver(&osst_template.gendrv); |
5978 | 5978 | unregister_chrdev(OSST_MAJOR, "osst"); |
5979 | 5979 | osst_sysfs_cleanup(); |
drivers/scsi/scsi_scan.c
drivers/scsi/st.c
... | ... | @@ -195,8 +195,8 @@ |
195 | 195 | static int st_probe(struct device *); |
196 | 196 | static int st_remove(struct device *); |
197 | 197 | |
198 | -static int do_create_driverfs_files(void); | |
199 | -static void do_remove_driverfs_files(void); | |
198 | +static int do_create_sysfs_files(void); | |
199 | +static void do_remove_sysfs_files(void); | |
200 | 200 | static int do_create_class_files(struct scsi_tape *, int, int); |
201 | 201 | |
202 | 202 | static struct scsi_driver st_template = { |
... | ... | @@ -4193,7 +4193,7 @@ |
4193 | 4193 | if (err) |
4194 | 4194 | goto err_chrdev; |
4195 | 4195 | |
4196 | - err = do_create_driverfs_files(); | |
4196 | + err = do_create_sysfs_files(); | |
4197 | 4197 | if (err) |
4198 | 4198 | goto err_scsidrv; |
4199 | 4199 | |
... | ... | @@ -4211,7 +4211,7 @@ |
4211 | 4211 | |
4212 | 4212 | static void __exit exit_st(void) |
4213 | 4213 | { |
4214 | - do_remove_driverfs_files(); | |
4214 | + do_remove_sysfs_files(); | |
4215 | 4215 | scsi_unregister_driver(&st_template.gendrv); |
4216 | 4216 | unregister_chrdev_region(MKDEV(SCSI_TAPE_MAJOR, 0), |
4217 | 4217 | ST_MAX_TAPE_ENTRIES); |
4218 | 4218 | |
4219 | 4219 | |
4220 | 4220 | |
4221 | 4221 | |
4222 | 4222 | |
4223 | 4223 | |
4224 | 4224 | |
4225 | 4225 | |
4226 | 4226 | |
4227 | 4227 | |
4228 | 4228 | |
... | ... | @@ -4249,43 +4249,43 @@ |
4249 | 4249 | } |
4250 | 4250 | static DRIVER_ATTR(version, S_IRUGO, st_version_show, NULL); |
4251 | 4251 | |
4252 | -static int do_create_driverfs_files(void) | |
4252 | +static int do_create_sysfs_files(void) | |
4253 | 4253 | { |
4254 | - struct device_driver *driverfs = &st_template.gendrv; | |
4254 | + struct device_driver *sysfs = &st_template.gendrv; | |
4255 | 4255 | int err; |
4256 | 4256 | |
4257 | - err = driver_create_file(driverfs, &driver_attr_try_direct_io); | |
4257 | + err = driver_create_file(sysfs, &driver_attr_try_direct_io); | |
4258 | 4258 | if (err) |
4259 | 4259 | return err; |
4260 | - err = driver_create_file(driverfs, &driver_attr_fixed_buffer_size); | |
4260 | + err = driver_create_file(sysfs, &driver_attr_fixed_buffer_size); | |
4261 | 4261 | if (err) |
4262 | 4262 | goto err_try_direct_io; |
4263 | - err = driver_create_file(driverfs, &driver_attr_max_sg_segs); | |
4263 | + err = driver_create_file(sysfs, &driver_attr_max_sg_segs); | |
4264 | 4264 | if (err) |
4265 | 4265 | goto err_attr_fixed_buf; |
4266 | - err = driver_create_file(driverfs, &driver_attr_version); | |
4266 | + err = driver_create_file(sysfs, &driver_attr_version); | |
4267 | 4267 | if (err) |
4268 | 4268 | goto err_attr_max_sg; |
4269 | 4269 | |
4270 | 4270 | return 0; |
4271 | 4271 | |
4272 | 4272 | err_attr_max_sg: |
4273 | - driver_remove_file(driverfs, &driver_attr_max_sg_segs); | |
4273 | + driver_remove_file(sysfs, &driver_attr_max_sg_segs); | |
4274 | 4274 | err_attr_fixed_buf: |
4275 | - driver_remove_file(driverfs, &driver_attr_fixed_buffer_size); | |
4275 | + driver_remove_file(sysfs, &driver_attr_fixed_buffer_size); | |
4276 | 4276 | err_try_direct_io: |
4277 | - driver_remove_file(driverfs, &driver_attr_try_direct_io); | |
4277 | + driver_remove_file(sysfs, &driver_attr_try_direct_io); | |
4278 | 4278 | return err; |
4279 | 4279 | } |
4280 | 4280 | |
4281 | -static void do_remove_driverfs_files(void) | |
4281 | +static void do_remove_sysfs_files(void) | |
4282 | 4282 | { |
4283 | - struct device_driver *driverfs = &st_template.gendrv; | |
4283 | + struct device_driver *sysfs = &st_template.gendrv; | |
4284 | 4284 | |
4285 | - driver_remove_file(driverfs, &driver_attr_version); | |
4286 | - driver_remove_file(driverfs, &driver_attr_max_sg_segs); | |
4287 | - driver_remove_file(driverfs, &driver_attr_fixed_buffer_size); | |
4288 | - driver_remove_file(driverfs, &driver_attr_try_direct_io); | |
4285 | + driver_remove_file(sysfs, &driver_attr_version); | |
4286 | + driver_remove_file(sysfs, &driver_attr_max_sg_segs); | |
4287 | + driver_remove_file(sysfs, &driver_attr_fixed_buffer_size); | |
4288 | + driver_remove_file(sysfs, &driver_attr_try_direct_io); | |
4289 | 4289 | } |
4290 | 4290 | |
4291 | 4291 |
drivers/usb/host/ehci-dbg.c
fs/lockd/svc.c
include/linux/device.h
... | ... | @@ -101,7 +101,7 @@ |
101 | 101 | #define BUS_NOTIFY_UNBIND_DRIVER 0x00000004 /* driver about to be |
102 | 102 | unbound */ |
103 | 103 | |
104 | -/* driverfs interface for exporting bus attributes */ | |
104 | +/* sysfs interface for exporting bus attributes */ | |
105 | 105 | |
106 | 106 | struct bus_attribute { |
107 | 107 | struct attribute attr; |
... | ... | @@ -146,7 +146,7 @@ |
146 | 146 | extern struct device_driver *driver_find(const char *name, struct bus_type *bus); |
147 | 147 | extern int driver_probe_done(void); |
148 | 148 | |
149 | -/* driverfs interface for exporting driver attributes */ | |
149 | +/* sysfs interface for exporting driver attributes */ | |
150 | 150 | |
151 | 151 | struct driver_attribute { |
152 | 152 | struct attribute attr; |
include/linux/moduleparam.h
... | ... | @@ -59,7 +59,7 @@ |
59 | 59 | }; |
60 | 60 | |
61 | 61 | /* This is the fundamental function for registering boot/module |
62 | - parameters. perm sets the visibility in driverfs: 000 means it's | |
62 | + parameters. perm sets the visibility in sysfs: 000 means it's | |
63 | 63 | not there, read bits mean it's readable, write bits mean it's |
64 | 64 | writable. */ |
65 | 65 | #define __module_param_call(prefix, name, set, get, arg, perm) \ |