From: Chanwoo Choi Date: Thu, 24 Apr 2014 10:46:49 +0000 (+0900) Subject: extcon: Add extcon_dev_allocate/free() to control the memory of extcon device X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~38^2~21^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9af65223b41cec60cd44fa95a93d10149deb143;p=pandora-kernel.git extcon: Add extcon_dev_allocate/free() to control the memory of extcon device This patch add APIs to control the extcon device on extcon provider driver. The extcon_dev_allocate() allocates the memory of extcon device and initializes supported cables. And then extcon_dev_free() decrement the reference of the device of extcon device and free the memory of the extcon device. This APIs must need to implement devm_extcon_dev_allocate()/free() APIs. Signed-off-by: Chanwoo Choi Reviewed-by: Felipe Balbi --- Reading git-diff-tree failed