aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2009-12-30 15:18:24 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-12-30 15:19:38 -0500
commitc2b27ef672992a206e5b221b8676972dd840ffa5 (patch)
treedb7123379c12cda9659929b4c6e4897e088e9545 /lib/kobject.c
parent70f944139084c4f297ac90b3af4cb67a8a68b2cf (diff)
Input: iforce - wait for command completion when closing the device
We need to wait for the command to disable FF effects to complete before continuing with closing the device. Tested-by: Johannes Ebke <johannes.ebke@physik.uni-muenchen.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions
class='sha1'>e1e9dbddfe71
e1e9dbddfe71
4ab9b3c24b00
e1e9dbddfe71
4ab9b3c24b00

e1e9dbddfe71
4ab9b3c24b00
e1e9dbddfe71

9ee2b61df14f
e1e9dbddfe71
4ab9b3c24b00
e1e9dbddfe71

4ec7b0791552
e1e9dbddfe71
4ab9b3c24b00
c9d9d0d443af
6271b5bac99c
51b5d8d783fe
c9d9d0d443af
51b5d8d783fe

13e6aacf60ad

a93938a23d4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  
                               

                             
                             



                                 

                     
 
                                   
                     

                          
                                 
                                                                     
                                        
                                                                       
 
                                                            

                    

                             
                      
 
                                 
                                       
  
                                                                    
 

                                                                      
 
                                          

 
                                                                       
 
                                           

 
                                   
 
                                                                      
                                                        
 
                                                                                
                                

                                                                          

 
                          
/*
 * Greybus Interface Block code
 *
 * Copyright 2014 Google Inc.
 * Copyright 2014 Linaro Ltd.
 *
 * Released under the GPLv2 only.
 */

#ifndef __INTERFACE_H
#define __INTERFACE_H

/* Greybus "public" definitions" */
struct gb_interface {
	struct device dev;

	struct list_head bundles;
	struct list_head links;	/* greybus_host_device->interfaces */
	struct list_head manifest_descs;
	u8 interface_id;	/* Physical location within the Endo */

	/* Information taken from the manifest descriptor */
	u16 vendor;
	u16 product;
	char *vendor_string;
	char *product_string;
	u64 unique_id;

	struct gb_module *module;
	struct greybus_host_device *hd;
};
#define to_gb_interface(d) container_of(d, struct gb_interface, dev)

static inline void gb_interface_set_drvdata(struct gb_interface *intf,
					    void *data)
{
	dev_set_drvdata(&intf->dev, data);
}

static inline void *gb_interface_get_drvdata(struct gb_interface *intf)
{
	return dev_get_drvdata(&intf->dev);
}

/* Greybus "private" definitions */

struct gb_interface *gb_interface_find(struct greybus_host_device *hd,
				       u8 interface_id);

void gb_interface_add(struct greybus_host_device *hd, u8 interface_id, u8 *data,
		      int size);
void gb_interface_remove(struct greybus_host_device *hd, u8 interface_id);
void gb_interfaces_remove(struct greybus_host_device *hd);


#endif /* __INTERFACE_H */