diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2013-09-27 09:19:40 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-09-27 09:37:01 +0900 |
commit | dae616512476024aa61d2a598461ab6eff8c0709 (patch) | |
tree | 8fbc98fef0beb28f8dbc334624bd63cde45b2101 /include/linux/extcon.h | |
parent | 4102424302b313516d11a325e2ba614deec526a2 (diff) | |
download | linux-stable-dae616512476024aa61d2a598461ab6eff8c0709.tar.gz linux-stable-dae616512476024aa61d2a598461ab6eff8c0709.tar.bz2 linux-stable-dae616512476024aa61d2a598461ab6eff8c0709.zip |
extcon: Change field type of 'dev' in extcon_dev structure
The extcon device must always need 'struct device' so this patch change
field type of 'dev' instead of allocating memory for 'struct device' on
extcon_dev_register() function.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <cw00.choi@samsung.com>
Diffstat (limited to 'include/linux/extcon.h')
-rw-r--r-- | include/linux/extcon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/extcon.h b/include/linux/extcon.h index c2b652dde72c..0269bafb0ee8 100644 --- a/include/linux/extcon.h +++ b/include/linux/extcon.h @@ -93,7 +93,7 @@ struct extcon_cable; * name of the extcon device. * @print_state: An optional callback to override the method to print the * status of the extcon device. - * @dev: Device of this extcon. Do not provide at register-time. + * @dev: Device of this extcon. * @state: Attach/detach state of this extcon. Do not provide at * register-time. * @nh: Notifier for the state change events from this extcon @@ -121,7 +121,7 @@ struct extcon_dev { ssize_t (*print_state)(struct extcon_dev *edev, char *buf); /* Internal data. Please do not set. */ - struct device *dev; + struct device dev; struct raw_notifier_head nh; struct list_head entry; int max_supported; |