ide: do not access ide_drive_t 'drive_data' field directly
authorJoao Ramos <joao.ramos@inov.pt>
Mon, 15 Jun 2009 20:13:44 +0000 (22:13 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 15 Jun 2009 20:13:44 +0000 (22:13 +0200)
commit5bfb151f1f565e6082304a30e8c81dfb6ed0b0c8
tree331727c29645788035c4f4b0e617f8f0c9c52e1d
parent3779f818a42879038c4be8bc83123432b774279d
ide: do not access ide_drive_t 'drive_data' field directly

Change ide_drive_t 'drive_data' field from 'unsigned int' type to 'void *'
type, allowing a wider range of values/types to be stored in this field.

Added 'ide_get_drivedata' and 'ide_set_drivedata' helpers to get and set
the 'drive_data' field.

Fixed all host drivers to maintain coherency with the change in the
'drive_data' field type.

Signed-off-by: Joao Ramos <joao.ramos@inov.pt>
[bart: fix qd65xx build, cast to 'unsigned long', minor Coding Style fixups]
Acked-by: Sergei Shtylyov <sshtylyov@ru.montavista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/cmd64x.c
drivers/ide/cs5536.c
drivers/ide/ht6560b.c
drivers/ide/icside.c
drivers/ide/opti621.c
drivers/ide/qd65xx.c
drivers/ide/qd65xx.h
drivers/ide/sl82c105.c
include/linux/ide.h