diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-02 00:02:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:54:52 -0400 |
commit | aab0de245150c09e61c30962feb16aacde508dc3 (patch) | |
tree | cd9cfa1e2c09aeb4cdeee605efa45fef90f0d38a /include | |
parent | f75b1c60fc1e53c4004a79ea0be071aa3318cdcc (diff) |
driver core: remove KOBJ_NAME_LEN define
Kobjects do not have a limit in name size since a while, so stop
pretending that they do.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device.h | 3 | ||||
-rw-r--r-- | include/linux/kobject.h | 1 | ||||
-rw-r--r-- | include/linux/spi/spi.h | 2 | ||||
-rw-r--r-- | include/scsi/scsi_host.h | 2 | ||||
-rw-r--r-- | include/scsi/scsi_transport_fc.h | 4 | ||||
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 2 |
6 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 0e1d24c2ed41..fba1bb0d1758 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -29,8 +29,7 @@ | |||
29 | /* DEVICE_NAME_HALF is really less than half to accommodate slop */ | 29 | /* DEVICE_NAME_HALF is really less than half to accommodate slop */ |
30 | #define DEVICE_NAME_HALF __stringify(20) | 30 | #define DEVICE_NAME_HALF __stringify(20) |
31 | #define DEVICE_ID_SIZE 32 | 31 | #define DEVICE_ID_SIZE 32 |
32 | #define BUS_ID_SIZE KOBJ_NAME_LEN | 32 | #define BUS_ID_SIZE 20 |
33 | |||
34 | 33 | ||
35 | struct device; | 34 | struct device; |
36 | struct device_driver; | 35 | struct device_driver; |
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 39e709f88aa0..d542faa6cb47 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/wait.h> | 26 | #include <linux/wait.h> |
27 | #include <asm/atomic.h> | 27 | #include <asm/atomic.h> |
28 | 28 | ||
29 | #define KOBJ_NAME_LEN 20 | ||
30 | #define UEVENT_HELPER_PATH_LEN 256 | 29 | #define UEVENT_HELPER_PATH_LEN 256 |
31 | #define UEVENT_NUM_ENVP 32 /* number of env pointers */ | 30 | #define UEVENT_NUM_ENVP 32 /* number of env pointers */ |
32 | #define UEVENT_BUFFER_SIZE 2048 /* buffer for the variables */ | 31 | #define UEVENT_BUFFER_SIZE 2048 /* buffer for the variables */ |
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 387e428f1cdf..b9a76c972084 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -733,7 +733,7 @@ struct spi_board_info { | |||
733 | * controller_data goes to spi_device.controller_data, | 733 | * controller_data goes to spi_device.controller_data, |
734 | * irq is copied too | 734 | * irq is copied too |
735 | */ | 735 | */ |
736 | char modalias[KOBJ_NAME_LEN]; | 736 | char modalias[32]; |
737 | const void *platform_data; | 737 | const void *platform_data; |
738 | void *controller_data; | 738 | void *controller_data; |
739 | int irq; | 739 | int irq; |
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 1834fdfe82a7..a594bac4a77d 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -623,7 +623,7 @@ struct Scsi_Host { | |||
623 | /* | 623 | /* |
624 | * Optional work queue to be utilized by the transport | 624 | * Optional work queue to be utilized by the transport |
625 | */ | 625 | */ |
626 | char work_q_name[KOBJ_NAME_LEN]; | 626 | char work_q_name[20]; |
627 | struct workqueue_struct *work_q; | 627 | struct workqueue_struct *work_q; |
628 | 628 | ||
629 | /* | 629 | /* |
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h index 06f72bab9df0..878373c32ef7 100644 --- a/include/scsi/scsi_transport_fc.h +++ b/include/scsi/scsi_transport_fc.h | |||
@@ -489,9 +489,9 @@ struct fc_host_attrs { | |||
489 | u16 npiv_vports_inuse; | 489 | u16 npiv_vports_inuse; |
490 | 490 | ||
491 | /* work queues for rport state manipulation */ | 491 | /* work queues for rport state manipulation */ |
492 | char work_q_name[KOBJ_NAME_LEN]; | 492 | char work_q_name[20]; |
493 | struct workqueue_struct *work_q; | 493 | struct workqueue_struct *work_q; |
494 | char devloss_work_q_name[KOBJ_NAME_LEN]; | 494 | char devloss_work_q_name[20]; |
495 | struct workqueue_struct *devloss_work_q; | 495 | struct workqueue_struct *devloss_work_q; |
496 | }; | 496 | }; |
497 | 497 | ||
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index f5444e033cc9..8b6c91df4c7a 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -198,7 +198,7 @@ struct iscsi_cls_host { | |||
198 | atomic_t nr_scans; | 198 | atomic_t nr_scans; |
199 | struct mutex mutex; | 199 | struct mutex mutex; |
200 | struct workqueue_struct *scan_workq; | 200 | struct workqueue_struct *scan_workq; |
201 | char scan_workq_name[KOBJ_NAME_LEN]; | 201 | char scan_workq_name[20]; |
202 | }; | 202 | }; |
203 | 203 | ||
204 | extern void iscsi_host_for_each_session(struct Scsi_Host *shost, | 204 | extern void iscsi_host_for_each_session(struct Scsi_Host *shost, |