Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5624947pxb; Mon, 28 Mar 2022 15:08:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVqdoUag2V5IvPGOzYgqDeM3EoIKb/2pqlYWFd+ayUpbpUP0yIR2KHSMdYCbLB8UMP9gJT X-Received: by 2002:a9f:3b2e:0:b0:347:33ae:e5e4 with SMTP id i46-20020a9f3b2e000000b0034733aee5e4mr13292575uah.49.1648505290819; Mon, 28 Mar 2022 15:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648505290; cv=none; d=google.com; s=arc-20160816; b=VvmAf8Sy1gnuu+PwE/z9vaVk906nwVn2GKBmUF1kscRsu+F2/cBXPd8FoLVGGeWrUm cmHW/MC6Wwas//5/JY5uoM19ICHco+5rXVOu7cEl/LkWuu5/wCf3FBExgk/NP+h9MIiY JF267cxaw3xzYH/WSZIvRvgzkYA/SE0lIZjJGxiuDmQauilIrr2o1w3cQs3GcYQbI5wt QFbfVvHRkGA+6hxKBp28TAlM2xMpp5n0Op2GDz7CNf0vxH8UjoM9sg+0GafrtfGpGTcI cJ07iFZ2DG/dXEaNVnL1CxDslPWr434ClSNLB3ga3LNC1Y95t8HiDmrajU1Oplk6q/FB vkiQ== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=VGGcSopbgPrNcs9XviSY7KwSfEZbSfh1CRKcLg+FdXY=; b=gZn6evOZZv2RLffsExfJUpO+uUBaZ0CVqkaZLwgAnaSYPI9XI79qzw1Z+XTbYTG58H A7F1zE7cXDhDA2zXPHeFhpp4sa2mTCmy0lSDdXVIGcnoa/XiT584T1MgkOp/X+axlV6P /T/CYtnjp4D9zx80a4N62LQ5ualeIX+/KuuT/tBnWiuQpGIt5Wp0Sne/riWZw4w4sRjl m5tDxN4g9zl6mTJcIDPvTfp6uiXdMvvHV4tvUj/tIy2aQWtdzJXVAoM4KB5NDXblUMB/ AHcyyzhjHX8eCtObyBKcZn2pYtuhsd+fn0DYaPDKuHW5i+feZQkj88lxMnFd0W+fRSja OzWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=aaNkupoi; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=GkG5TgSF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n63-20020a1fbd42000000b0033e831701bfsi3123663vkf.41.2022.03.28.15.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:08:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=aaNkupoi; dkim=pass header.i=@stuerz.xyz header.s=mail header.b=GkG5TgSF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=stuerz.xyz Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3310B14DFDE; Mon, 28 Mar 2022 14:29:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345700AbiC1Uus (ORCPT + 99 others); Mon, 28 Mar 2022 16:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346399AbiC1Usg (ORCPT ); Mon, 28 Mar 2022 16:48:36 -0400 Received: from stuerz.xyz (unknown [45.77.206.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80A1CDEBD; Mon, 28 Mar 2022 13:46:49 -0700 (PDT) Received: by stuerz.xyz (Postfix, from userid 114) id B7348FB5E4; Mon, 28 Mar 2022 20:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648500408; bh=5t9XKqDfb1pVMMfFmkQUBKRx7TGbB+L68FzAskNSgbw=; h=From:To:Cc:Subject:Date:From; b=aaNkupoizOKf82Kgx7o2zWfINV0bXNmZpP4vp5oog25xHEj7aTg/LOOm/GZGcOOnv mXauQplxQvI4GGuM0Kow5URxqRzNhKxqhBD1DR6zrzjJw2/0rvzQG0fky9lFX9Nsse PQHtpLrDQKlQeRS0JM6MVbbqXo0ZroCWqDNjuBN+m0+ZqpXKKzmykRwY5jif/Gxrr6 GuXeQjN6+Bg+JBjeYVGDFSg0jUkg41y80qtPTdahPrc7+xmVV+a4ja2ZwI29nT4qt1 TEWT+QHJhwQqTb757+8V9zmdfVz69xxTY9AbAEvKUOH8F+uU1rV9m/RizC+W6iF74+ GVF/Yb0G+8dlg== Received: from benni-fedora.. (unknown [IPv6:2a02:8109:a100:1a48:ff0:ef2f:d4da:17d8]) by stuerz.xyz (Postfix) with ESMTPSA id 6082DFB404; Mon, 28 Mar 2022 20:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stuerz.xyz; s=mail; t=1648500406; bh=5t9XKqDfb1pVMMfFmkQUBKRx7TGbB+L68FzAskNSgbw=; h=From:To:Cc:Subject:Date:From; b=GkG5TgSFSGAQh7MfaSjiP7EiXN1Tl7OzcnYkBoU3sMnkLvQ70mSl5DahbFhYoo4T0 VPAKLjEbapZ69QpIQb4tnCCcWTqKRda2bCq8L5hp211uYXIqeHcoM2MvNCp/DpQpNg WXnU8qhv10gstCGoE5y6qWDHPUc8OEzGzl9Qxxc16DZaHo6+fFDOo7lu9gHPkM+Pwv bEzyc9xgZw6rpLUwxvdhTRpjYrD5MVB9gtwVyPdijBEWWm0NMpKBMrPMGkBXA+rvdJ 8jQzPAFxB6/6OWtg7KHl6ihzZa7o5DUQB9TUUYZFO/NdsSbKoSokwegd3NrarkgrhA vh3BUIT28kP3g== From: =?UTF-8?q?Benjamin=20St=C3=BCrz?= To: linux@simtec.co.uk Cc: krzk@kernel.org, alim.akhtar@samsung.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Benjamin=20St=C3=BCrz?= Subject: [PATCH v2] s3c: Improve readability of bast_pc104_irqmask[] Date: Mon, 28 Mar 2022 22:46:38 +0200 Message-Id: <20220328204638.273157-1-benni@stuerz.xyz> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FROM_SUSPICIOUS_NTLD, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Replace comments in bast_pc104_irqmask[] with C99's designated initializers because it makes the code cleaner and easier to read. Signed-off-by: Benjamin Stürz --- arch/arm/mach-s3c/bast-irq.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/arch/arm/mach-s3c/bast-irq.c b/arch/arm/mach-s3c/bast-irq.c index d299f124e6dc..618b51db3eef 100644 --- a/arch/arm/mach-s3c/bast-irq.c +++ b/arch/arm/mach-s3c/bast-irq.c @@ -28,23 +28,11 @@ /* table of ISA irq nos to the relevant mask... zero means * the irq is not implemented */ -static const unsigned char bast_pc104_irqmasks[] = { - 0, /* 0 */ - 0, /* 1 */ - 0, /* 2 */ - 1, /* 3 */ - 0, /* 4 */ - 2, /* 5 */ - 0, /* 6 */ - 4, /* 7 */ - 0, /* 8 */ - 0, /* 9 */ - 8, /* 10 */ - 0, /* 11 */ - 0, /* 12 */ - 0, /* 13 */ - 0, /* 14 */ - 0, /* 15 */ +static const unsigned char bast_pc104_irqmasks[16] = { + [3] = 1, + [5] = 2, + [7] = 4, + [10] = 8, }; static const unsigned char bast_pc104_irqs[] = { 3, 5, 7, 10 }; -- 2.35.1