extcon: gpio: Add the missing supported_cable parameter to devm_extcon_dev_allocate()
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Sep 2015 13:57:24 +0000 (22:57 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 30 Sep 2015 10:22:49 +0000 (19:22 +0900)
commitce6f7496050e29108bcefe0413df1789648fb38f
tree41f37b679c618de54acba780664705097ae7c01e
parent60f9b9e65c82cc610cc9c02c1f555df8fb2ce4f0
extcon: gpio: Add the missing supported_cable parameter to devm_extcon_dev_allocate()

The commit 2a9de9c0 ("extcon: Use the unique id for external connector instead
of string") defines the unique id of each external connector to identify the
type of external connector instead of string name. So, devm_extcon_dev_allocate()
should include the second parameter (unsigned int *supported_cable). This patch
adds the supported_cable parameter which is passed by platform data.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-gpio.c
include/linux/extcon/extcon-gpio.h