Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932401AbbESM2P (ORCPT ); Tue, 19 May 2015 08:28:15 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:42227 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754956AbbESM2J (ORCPT ); Tue, 19 May 2015 08:28:09 -0400 X-AuditID: cbfee68e-f79c56d000006efb-10-555b2c574a1d Message-id: <555B2C56.8080105@samsung.com> Date: Tue, 19 May 2015 21:28:06 +0900 From: Chanwoo Choi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-version: 1.0 To: cw00.choi@samsung.com, Krzysztof Kozlowski Cc: Chanwoo Choi , linux-kernel , "myungjoo.ham@samsung.com" , Charles Keepax , gg@slimlogic.co.uk, Kishon Vijay Abraham I , jaewon02.kim@samsung.com, Roger Quadros , "Pallala, Ramakrishna" , george.cherian@ti.com, Felipe Balbi , Aaro Koskinen Subject: Re: [PATCH 1/2] extcon: Use the unique id for external connector instead of string References: <1431700278-30465-1-git-send-email-cw00.choi@samsung.com> <1431700278-30465-2-git-send-email-cw00.choi@samsung.com> In-reply-to: Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsWyRsSkQDdcJzrUYO4zLYs1LxwsDt6vt/g3 5Qa7xfUvz1ktnh3Vtjh1cDmrRf8WF4sdDUdYLV6/MLS48LSHzeLyrjlsFrcbV7BZLHxzk8mi 55GWA5/Hzll32T0Of13I4rF4z0smj5cTf7N59G1ZxegxdcpfRo/jN7YzeXzeJBfAEcVlk5Ka k1mWWqRvl8CVsfbSKZaCBq6KC2t3szYw/mHvYuTgkBAwkTj4UqeLkRPIFJO4cG89WxcjF4eQ wFJGiRf79rJBJEwk3i1ewwqRmM4o8X/1QRYI5wGjxOe2bkaQSbwCWhKHT+uDNLAI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zBYR8JDY23+HEWQms8AVZokPP3oZ QRLCArES3dPmMEIs62eS+LJ9P9gkToFgiX1/VoF1MwuoS0yat4gZwpaX2LzmLfMERoFZSJbM QlI2C0nZAkbmVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxjBCeOZ1A7GlQ0WhxgFOBiVeHgj 6qNChVgTy4orcw8xSnAwK4nwinNHhwrxpiRWVqUW5ccXleakFh9iNAWGwURmKdHkfGAyyyuJ NzQ2MTOyNDI3tDAyNlcS5z2Z7xMqJJCeWJKanZpakFoE08fEwSnVwJidVX7ZRfrhBfuih5ef TtB8PMNzxgpT68q1isIXHJ7lhjanHT10eVnM4+LWMpU41z8Zp3ZV/339tojjwqu6xZuuR5fN kxJZ9/zOo+/rtuqsNnWcdsZx8Y7oPtfohKPpe+Ykyty/IrVsJ7vSwU2/N76077ZQ37ZHIn5J j2Z7m6altMTuGVzycVxKLMUZiYZazEXFiQC+keH9LgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 35 Hi Krzysztof, >>> + >>> + if (i == edev->max_supported) >>> + return -EINVAL; >>> >>> if (index < 0 || (edev->max_supported && edev->max_supported <= index)) >>> return -EINVAL; >>> @@ -605,7 +644,7 @@ static void dummy_sysfs_dev_release(struct device *dev) >>> * >>> * Return the pointer of extcon device if success or ERR_PTR(err) if fail >>> */ >>> -struct extcon_dev *extcon_dev_allocate(const char **supported_cable) >>> +struct extcon_dev *extcon_dev_allocate(const enum extcon *supported_cable) >> >> I think you also have to update the documentation. At least for >> {devm}_extcon_dev_allocate but maybe in other places too. Previously >> the documentation states that supported_cable is an array of strings. >> Additionally AFAIU now it must end with EXTCON_NONE. This >> sentinel-like info must be clearly documented. As you commented, extcon must need to document the update and usage method of extcon core. The mainline kernel includes only the 'Documentation/extcon/porting-android-switch-class'. Namely, the mainline kernel have not included the document showing the usage method of extcon core. So, I'll make the proper document for extcon core as later job. Thanks, Chanwoo Choi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/