diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-07 22:22:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-07 22:22:26 -0500 |
commit | f2aca47dc3c2d0c2d5dbd972558557e74232bbce (patch) | |
tree | eae58f599a25a1f3ab41bf616a2b7c4b3c6e2277 /include/linux/spi/spi.h | |
parent | 7677ced48e2bbbb8d847d34f37e5d96d2b0e41e4 (diff) | |
parent | b592fcfe7f06c15ec11774b5be7ce0de3aa86e73 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (28 commits)
sysfs: Shadow directory support
Driver Core: Increase the default timeout value of the firmware subsystem
Driver core: allow to delay the uevent at device creation time
Driver core: add device_type to struct device
Driver core: add uevent vars for devices of a class
SYSFS: Fix missing include of list.h in sysfs.h
HOWTO: Add a reference to Harbison and Steele
sysfs: error handling in sysfs, fill_read_buffer()
kobject: kobject_put cleanup
sysfs: kobject_put cleanup
sysfs: suppress lockdep warnings
Driver core: fix race in sysfs between sysfs_remove_file() and read()/write()
driver core: Change function call order in device_bind_driver().
driver core: Don't stop probing on ->probe errors.
driver core fixes: device_register() retval check in platform.c
driver core fixes: make_class_name() retval checks
/sys/modules/*/holders
USB: add the sysfs driver name to all modules
SERIO: add the sysfs driver name to all modules
PCI: add the sysfs driver name to all modules
...
Diffstat (limited to 'include/linux/spi/spi.h')
-rw-r--r-- | include/linux/spi/spi.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 176f6e36dbfa..8c2edd82a073 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -170,7 +170,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) | |||
170 | * message's completion function when the transaction completes. | 170 | * message's completion function when the transaction completes. |
171 | */ | 171 | */ |
172 | struct spi_master { | 172 | struct spi_master { |
173 | struct class_device cdev; | 173 | struct device dev; |
174 | 174 | ||
175 | /* other than negative (== assign one dynamically), bus_num is fully | 175 | /* other than negative (== assign one dynamically), bus_num is fully |
176 | * board-specific. usually that simplifies to being SOC-specific. | 176 | * board-specific. usually that simplifies to being SOC-specific. |
@@ -216,17 +216,17 @@ struct spi_master { | |||
216 | 216 | ||
217 | static inline void *spi_master_get_devdata(struct spi_master *master) | 217 | static inline void *spi_master_get_devdata(struct spi_master *master) |
218 | { | 218 | { |
219 | return class_get_devdata(&master->cdev); | 219 | return dev_get_drvdata(&master->dev); |
220 | } | 220 | } |
221 | 221 | ||
222 | static inline void spi_master_set_devdata(struct spi_master *master, void *data) | 222 | static inline void spi_master_set_devdata(struct spi_master *master, void *data) |
223 | { | 223 | { |
224 | class_set_devdata(&master->cdev, data); | 224 | dev_set_drvdata(&master->dev, data); |
225 | } | 225 | } |
226 | 226 | ||
227 | static inline struct spi_master *spi_master_get(struct spi_master *master) | 227 | static inline struct spi_master *spi_master_get(struct spi_master *master) |
228 | { | 228 | { |
229 | if (!master || !class_device_get(&master->cdev)) | 229 | if (!master || !get_device(&master->dev)) |
230 | return NULL; | 230 | return NULL; |
231 | return master; | 231 | return master; |
232 | } | 232 | } |
@@ -234,7 +234,7 @@ static inline struct spi_master *spi_master_get(struct spi_master *master) | |||
234 | static inline void spi_master_put(struct spi_master *master) | 234 | static inline void spi_master_put(struct spi_master *master) |
235 | { | 235 | { |
236 | if (master) | 236 | if (master) |
237 | class_device_put(&master->cdev); | 237 | put_device(&master->dev); |
238 | } | 238 | } |
239 | 239 | ||
240 | 240 | ||