Skip to content

Commit 4a3ad20

Browse files
committed
Driver core: coding style fixes
Fix up a number of coding style issues in the drivers/base/ directory that have annoyed me over the years. checkpatch.pl is now very happy. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent e374a2b commit 4a3ad20

8 files changed

Lines changed: 545 additions & 583 deletions

File tree

‎drivers/base/base.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ extern int platform_bus_init(void);
5050
extern int system_bus_init(void);
5151
extern int cpu_dev_init(void);
5252

53-
extern int bus_add_device(struct device * dev);
54-
extern void bus_attach_device(struct device * dev);
55-
extern void bus_remove_device(struct device * dev);
53+
extern int bus_add_device(struct device *dev);
54+
extern void bus_attach_device(struct device *dev);
55+
extern void bus_remove_device(struct device *dev);
5656

57-
extern int bus_add_driver(struct device_driver *);
58-
extern void bus_remove_driver(struct device_driver *);
57+
extern int bus_add_driver(struct device_driver *drv);
58+
extern void bus_remove_driver(struct device_driver *drv);
5959

60-
extern void driver_detach(struct device_driver * drv);
61-
extern int driver_probe_device(struct device_driver *, struct device *);
60+
extern void driver_detach(struct device_driver *drv);
61+
extern int driver_probe_device(struct device_driver *drv, struct device *dev);
6262

6363
extern void sysdev_shutdown(void);
6464
extern int sysdev_suspend(pm_message_t state);

0 commit comments

Comments
 (0)