diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-03-27 17:29:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-29 08:44:12 -0700 |
commit | a7b71bc043aded9da4cf51f85271e0779161fe22 (patch) | |
tree | 68b69d683542f91b883eb097e2c7bf332b4f3ecf /drivers/misc/mei/mei_dev.h | |
parent | 3e8332952dedd2c17bb497e3909e3b6fbac10ce7 (diff) | |
download | lwn-a7b71bc043aded9da4cf51f85271e0779161fe22.tar.gz lwn-a7b71bc043aded9da4cf51f85271e0779161fe22.zip |
mei: bus: Add bus related structures to mei_cl
We keep track of all MEI devices on the bus through a specific linked list.
We also have a mei_device instance in the mei_cl structure.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/mei_dev.h')
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index cde5687039f3..0313c24a1a49 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h @@ -209,6 +209,11 @@ struct mei_cl { enum mei_file_transaction_states writing_state; int sm_state; struct mei_cl_cb *read_cb; + + /* MEI CL bus data */ + struct mei_cl_device *device; + struct list_head device_link; + uuid_le device_uuid; }; /** struct mei_hw_ops @@ -423,6 +428,9 @@ struct mei_device { struct work_struct init_work; + /* List of bus devices */ + struct list_head device_list; + const struct mei_hw_ops *ops; char hw[0] __aligned(sizeof(void *)); }; |