mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[PATCH] pcmcia: access config_t using pointer instead of array
Access the PCMCIA config_t struct (one per device function) using a pointer in struct pcmcia_device, instead of looking them up in an array. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
parent
1ae9c7d819
commit
dbb22f0d65
4 changed files with 12 additions and 16 deletions
|
|
@ -131,6 +131,7 @@ typedef struct dev_link_t {
|
|||
|
||||
|
||||
struct pcmcia_socket;
|
||||
struct config_t;
|
||||
|
||||
struct pcmcia_driver {
|
||||
int (*probe) (struct pcmcia_device *dev);
|
||||
|
|
@ -160,6 +161,7 @@ struct pcmcia_device {
|
|||
/* the hardware "function" device; certain subdevices can
|
||||
* share one hardware "function" device. */
|
||||
u8 func;
|
||||
struct config_t* function_config;
|
||||
|
||||
struct list_head socket_device_list;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue