Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6197703rwl; Wed, 22 Mar 2023 07:42:03 -0700 (PDT) X-Google-Smtp-Source: AK7set/Yc2suS7SKLwXRX6rh97201OE6LihE7qrVpGUsKX2EWkQrj2/8ENFLXVtZ0vF4WtBz1k7H X-Received: by 2002:a17:906:135a:b0:933:4c63:a522 with SMTP id x26-20020a170906135a00b009334c63a522mr7636620ejb.31.1679496123459; Wed, 22 Mar 2023 07:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679496123; cv=none; d=google.com; s=arc-20160816; b=bz4IVkzbJvbNnVOfe2u86NAwzg+T/+SNK/CcoyaZTuesh/Vtat5KifWmJ8Bjb1wsuJ P4cPAzbQIdEtthBTbasMb/VlPvfG2uiRcrCfjP7Me1taAo2IzwhmF8TqnqpFhC5e4NyC PWeb6kaOaBu5EulSE7s5vSVP9ScJ9ZvlgciHdu4mDn8rwCTIsFjsWfW0+yt69XyNBCkL JQr6haqFKJFg1EOMcvtyv8o1eNgFvsKvPX69bg3dHIIlq98fYFoMBkkg469KQk89VUAj bSTRV29e+KzXvrRaHtwSTapRAGn/UXdJx5TQFhL8t5zPwwXHMLdlsj6pHYcc7JgfCXjQ 03UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aMmQ62p4BBlUVQpiIxe/v0jQKQCmk965OAC2WDedCEk=; b=Xci0iXWyMkotex2j1CVuvSi1KABiBvOzjRFqPulAzLr4uDXMceSUo+fUWu328SD5/e bNqBnZX1LGfNJqAJk5zBt5zeCywlUhh2GELbG+9PLNqcjrtLuTaW/TXoNKsfJf8yxK0+ TTutQwcGrOqaP/CmH1g+b3XLkvAYTAuCDqvv6G8Cqp4/a5AFtoGxqJjUfnonxHKt5GEg lxZ3efzyXgizfPlf4l7Jx/VFPykWyYhLI6OEgoUqfU26tyj3ZHksYCPUo1WHbr/ToEOI bMBaAB/5IvpKhELfPUYmsxCkkEKalsGsccFDY/2/0hK0rsO2DZeylRX8dApvcp9CCsEF ODYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EB9yC3WM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt18-20020a170907729200b0093a6b6bfff7si4708600ejc.328.2023.03.22.07.41.39; Wed, 22 Mar 2023 07:42:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EB9yC3WM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbjCVOjb (ORCPT + 99 others); Wed, 22 Mar 2023 10:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbjCVOjY (ORCPT ); Wed, 22 Mar 2023 10:39:24 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A5942A141 for ; Wed, 22 Mar 2023 07:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679495963; x=1711031963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=23K7sqqOvhEB00PQYCJm2SbhNF+B/eu/uGmGRWsjPHU=; b=EB9yC3WMVLvQ/9aXmcV93naILOMzB4Qwh54VB3bmqf7hWgn7w1oV7IIP AdyAf09k03ur3jT7NVdINV5R8OVMXvUjr9IjKdiSbqyV5XzKinq5e61+r CCMgMllyT94xvQslWMbxsS+aMroCqUYnn3ViCkHNs6CExX7hA3zutjMxO e9Vs1xHfrVwiVfXkuu29LDFjpcyb9cb2M3oXoxf+4jWSnx6Px843rt4/Y m7K1QERUQtV50j/NRKexYJfvCeN1NsEtJ8ajlVk+TjGsOt6Kfp8sPt9pG NUJD2RFM8kI2Ce4s1ChHFz13Y4/DOJY7gTLovReh4yCyaCbEjiCt3zJAe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="327609289" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="327609289" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 07:39:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="792579427" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="792579427" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 22 Mar 2023 07:39:20 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id AB0C550A; Wed, 22 Mar 2023 16:40:06 +0200 (EET) From: Andy Shevchenko To: Bumwoo Lee , Andy Shevchenko , linux-kernel@vger.kernel.org Cc: MyungJoo Ham , Chanwoo Choi Subject: [PATCH v1 03/14] extcon: Use DECLARE_BITMAP() to declare bit arrays Date: Wed, 22 Mar 2023 16:39:54 +0200 Message-Id: <20230322144005.40368-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230322144005.40368-1-andriy.shevchenko@linux.intel.com> References: <20230322144005.40368-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bit arrays has a specific type helper for the declaration. Use it instead of homegronw equivalent. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index 79006ab5334b..70e9755ba2bc 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -230,10 +230,10 @@ struct extcon_cable { union extcon_property_value jack_propval[EXTCON_PROP_JACK_CNT]; union extcon_property_value disp_propval[EXTCON_PROP_DISP_CNT]; - unsigned long usb_bits[BITS_TO_LONGS(EXTCON_PROP_USB_CNT)]; - unsigned long chg_bits[BITS_TO_LONGS(EXTCON_PROP_CHG_CNT)]; - unsigned long jack_bits[BITS_TO_LONGS(EXTCON_PROP_JACK_CNT)]; - unsigned long disp_bits[BITS_TO_LONGS(EXTCON_PROP_DISP_CNT)]; + DECLARE_BITMAP(usb_bits, EXTCON_PROP_USB_CNT); + DECLARE_BITMAP(chg_bits, EXTCON_PROP_CHG_CNT); + DECLARE_BITMAP(jack_bits, EXTCON_PROP_JACK_CNT); + DECLARE_BITMAP(disp_bits, EXTCON_PROP_DISP_CNT); }; static struct class *extcon_class; -- 2.40.0.1.gaa8946217a0b