diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:49:58 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:49:58 -0400 |
| commit | e80ab411e589e00550e2e6e5a6a02d59cc730357 (patch) | |
| tree | 870225ff7b5b8d03e82a996963213a4bb9cce248 /include/linux/raid_class.h | |
| parent | 529a41e36673b518c9e091f3a8d932b6b9e3c461 (diff) | |
| parent | ee959b00c335d7780136c5abda37809191fe52c3 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6: (36 commits)
SCSI: convert struct class_device to struct device
DRM: remove unused dev_class
IB: rename "dev" to "srp_dev" in srp_host structure
IB: convert struct class_device to struct device
memstick: convert struct class_device to struct device
driver core: replace remaining __FUNCTION__ occurrences
sysfs: refill attribute buffer when reading from offset 0
PM: Remove destroy_suspended_device()
Firmware: add iSCSI iBFT Support
PM: Remove legacy PM (fix)
Kobject: Replace list_for_each() with list_for_each_entry().
SYSFS: Explicitly include required header file slab.h.
Driver core: make device_is_registered() work for class devices
PM: Convert wakeup flag accessors to inline functions
PM: Make wakeup flags available whenever CONFIG_PM is set
PM: Fix misuse of wakeup flag accessors in serial core
Driver core: Call device_pm_add() after bus_add_device() in device_add()
PM: Handle device registrations during suspend/resume
block: send disk "change" event for rescan_partitions()
sysdev: detect multiple driver registrations
...
Fixed trivial conflict in include/linux/memory.h due to semaphore header
file change (made irrelevant by the change to mutex).
Diffstat (limited to 'include/linux/raid_class.h')
| -rw-r--r-- | include/linux/raid_class.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/raid_class.h b/include/linux/raid_class.h index d22ad392242a..6b537f1ac96c 100644 --- a/include/linux/raid_class.h +++ b/include/linux/raid_class.h | |||
| @@ -53,20 +53,20 @@ struct raid_data { | |||
| 53 | #define DEFINE_RAID_ATTRIBUTE(type, attr) \ | 53 | #define DEFINE_RAID_ATTRIBUTE(type, attr) \ |
| 54 | static inline void \ | 54 | static inline void \ |
| 55 | raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \ | 55 | raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \ |
| 56 | struct class_device *cdev = \ | 56 | struct device *device = \ |
| 57 | attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ | 57 | attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ |
| 58 | struct raid_data *rd; \ | 58 | struct raid_data *rd; \ |
| 59 | BUG_ON(!cdev); \ | 59 | BUG_ON(!device); \ |
| 60 | rd = class_get_devdata(cdev); \ | 60 | rd = dev_get_drvdata(device); \ |
| 61 | rd->attr = value; \ | 61 | rd->attr = value; \ |
| 62 | } \ | 62 | } \ |
| 63 | static inline type \ | 63 | static inline type \ |
| 64 | raid_get_##attr(struct raid_template *r, struct device *dev) { \ | 64 | raid_get_##attr(struct raid_template *r, struct device *dev) { \ |
| 65 | struct class_device *cdev = \ | 65 | struct device *device = \ |
| 66 | attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ | 66 | attribute_container_find_class_device(&r->raid_attrs.ac, dev);\ |
| 67 | struct raid_data *rd; \ | 67 | struct raid_data *rd; \ |
| 68 | BUG_ON(!cdev); \ | 68 | BUG_ON(!device); \ |
| 69 | rd = class_get_devdata(cdev); \ | 69 | rd = dev_get_drvdata(device); \ |
| 70 | return rd->attr; \ | 70 | return rd->attr; \ |
| 71 | } | 71 | } |
| 72 | 72 | ||
