Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9386130ybi; Wed, 24 Jul 2019 03:12:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrqG/bgtPllRW0wrZ8NPvTLyiWHUAKzOjxNf+touYNPxzsXrypkumIZRcK//yxot/mPT8f X-Received: by 2002:a17:902:b497:: with SMTP id y23mr85441024plr.68.1563963153976; Wed, 24 Jul 2019 03:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563963153; cv=none; d=google.com; s=arc-20160816; b=qZIjR0g+LdXZMx9w7UyhQyfT/vw5iPJ+WrCEoLqEORCaOqArBTraKab47vG79ybmaU soCJOARX//5peeb35WeRHehMFn6FbiBnsfQuxYByE3bviXlguFc3n7V60AlXLdmYXG0r Now0yChs+DUJ1+d+Z/pc9lfE12BKqPupD15/VHu3TBFGSu12GJM4xYZS/ESRhx74xZl6 nKqmMWNAggj89Ooggrn8B0Xki1l8tDRhHgSLGgUwp++XP9ZXQZDIfBQ43TpwZgyXK5F7 jgf2laYvIYeo7n6JX6duO5MKspaMRU9qzNuLRA/nhRJ/1bM8lwyGBWvWfKCTVOylmIJ+ HRSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:to:subject :dkim-signature:dkim-filter; bh=gacQlWzC8sJvTnfd8Tarac+RZzf+ZzOI2k0StCEZXIc=; b=MgZxPHlWBZrTytSlBEa5hc50Wl/IXejvxSbz3z15EPx+91HOkOCp56socxLn9c029/ 3u1Kpm7LyHGyA+yhMWHuodQ+FvDRRlpNYLdQ9Nw80kH8sQp5fK3GNnJbouleiMo+gKEt C1T+TFnQKj8q4tBcE0zvMlYg/ohZ/OGW5Vftkynjs4xZCHfbcst/GaytiLXJJAi2mt9i zZz7/LW24yiWyANcC6hJyaUq+HoIGf6aXm7o9vhgmQysU5tUINjAdO4YQXZBoBMi/2Y0 Ta+sR11pH27ncjkrDNZqE/yHhsC/4fJ+mm/vvK1e38sr0OY+FtSk1rm5UNV7UlsAz1yX CM4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kA675OiN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si13106892pgc.123.2019.07.24.03.12.19; Wed, 24 Jul 2019 03:12:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kA675OiN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726650AbfGXJzC (ORCPT + 99 others); Wed, 24 Jul 2019 05:55:02 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:31395 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbfGXJzC (ORCPT ); Wed, 24 Jul 2019 05:55:02 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20190724095500epoutp0321615cf0c2be4671dd3e83b2d32d28a1~0Tz51uR481721017210epoutp03x for ; Wed, 24 Jul 2019 09:55:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20190724095500epoutp0321615cf0c2be4671dd3e83b2d32d28a1~0Tz51uR481721017210epoutp03x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563962100; bh=gacQlWzC8sJvTnfd8Tarac+RZzf+ZzOI2k0StCEZXIc=; h=Subject:To:From:Date:In-Reply-To:References:From; b=kA675OiN9RRb9aCKJZPVt5Agi/KsCnjmFwSYYi5d3DMFiqwQZHkRSz0BdRuWDinDi WIiBLI3A+cC2IYiyewfyqXsbyl32j1MWLVlV2M8BMiMOQ475pfTyJdHgQ9VzqSxxsi 0B8uKyd0Bg+1CXa0CkCzAxMk/LXtZYNL+X/6sMUk= Received: from epsnrtp5.localdomain (unknown [182.195.42.166]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20190724095459epcas1p3700b508076e53793ef992750c929a1ee~0Tz5cq4Pl0461504615epcas1p3r; Wed, 24 Jul 2019 09:54:59 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.158]) by epsnrtp5.localdomain (Postfix) with ESMTP id 45trL94S4yzMqYkW; Wed, 24 Jul 2019 09:54:57 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 2D.D9.04160.1FA283D5; Wed, 24 Jul 2019 18:54:57 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190724095457epcas1p2fb48717e6929f4183da7caa11c11c886~0Tz291erl3246332463epcas1p21; Wed, 24 Jul 2019 09:54:57 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190724095457epsmtrp2c0bf8ef7c388ce39b5d4b82a8743a724~0Tz26oQdO3228832288epsmtrp22; Wed, 24 Jul 2019 09:54:57 +0000 (GMT) X-AuditID: b6c32a38-b33ff70000001040-cc-5d382af19f5e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 26.91.03706.0FA283D5; Wed, 24 Jul 2019 18:54:57 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190724095456epsmtip1c8f346f971230f1a6cc4c6364fdf1b47~0Tz2pdpDp0058000580epsmtip1S; Wed, 24 Jul 2019 09:54:56 +0000 (GMT) Subject: Re: [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() To: Andy Shevchenko , MyungJoo Ham , linux-kernel@vger.kernel.org, Charles Keepax From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <7f7a9bae-2ffc-8cc2-1121-c861045cfa59@samsung.com> Date: Wed, 24 Jul 2019 18:57:59 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190723174021.66718-1-andriy.shevchenko@linux.intel.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmge5HLYtYgxudKha9TdOZLK60bmK0 uLxrDpvF7cYVbA4sHvNOBnpMn/Of0aNvyypGj8+b5AJYorJtMlITU1KLFFLzkvNTMvPSbZW8 g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4A2KimUJeaUAoUCEouLlfTtbIryS0tSFTLy i0tslVILUnIKLAv0ihNzi0vz0vWS83OtDA0MjEyBChOyM2YcW8Je0MBesbN/G1sD42PWLkZO DgkBE4lZV38wdzFycQgJ7GCUWHfpEiuE84lRonfOWiYI5xtQ5sQt9i5GDrCWGc2lEPG9jBJH ek8xQjjvGSXunzrMBDJXWCBEou/VPrCEiMAmRom1S1aDJdgEtCT2v7jBBmLzCyhKXP3xmBHE 5hWwk/jYexbMZhFQlbi5ZQrYgaICERKfHhxmhagRlDg58wkLiM0p4C5x5MM+sHpmAXGJW0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aWFZcmXuIUYKDWUmE N7DBLFaINyWxsiq1KD++qDQntfgQozQHi5I479O8Y5FCAumJJanZqakFqUUwWSYOTqkGRrPH 4hX1p9umJ0sWmopdYRBaZavBZfGjlDfj/rTjp38c3aWZpBawz0jlTA+XpkOUsY2JvaPNwnSx 0Mm1luZLFLslDapWfPfLveukcDNK6+5zpknqy19nnG3M8YxOFzEVK7poc/zYyUs2kVNaNuxw Nrvh1WjbHC2ub7ez8WHbuvlxO7ynK29UYinOSDTUYi4qTgQADoyP5oICAAA= X-CMS-MailID: 20190724095457epcas1p2fb48717e6929f4183da7caa11c11c886 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190723174028epcas3p28ace5fe5d945c9d13a67f8658d7be49e References: <20190723174021.66718-1-andriy.shevchenko@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19. 7. 24. 오전 2:40, Andy Shevchenko wrote: > Use use device_property_count_u32() directly, that makes code neater. > > Signed-off-by: Andy Shevchenko > --- > drivers/extcon/extcon-arizona.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c > index 7e9f4c9ee87d..e970134c95fa 100644 > --- a/drivers/extcon/extcon-arizona.c > +++ b/drivers/extcon/extcon-arizona.c > @@ -1253,7 +1253,7 @@ static int arizona_extcon_get_micd_configs(struct device *dev, > int i, j; > u32 *vals; > > - nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0); > + nconfs = device_property_count_u32(arizona->dev, prop); > if (nconfs <= 0) > return 0; > > Applied it. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics