Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4681199rwd; Tue, 30 May 2023 08:28:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49KC63Ysu+H5U7V/OEFhTDzTbCrC1MRj3j2aCu2hy/6JBIVBx2/TYtQjSRNw77SQ9hi3SF X-Received: by 2002:a17:90a:38c7:b0:255:5a5e:df22 with SMTP id x65-20020a17090a38c700b002555a5edf22mr2843055pjb.43.1685460521847; Tue, 30 May 2023 08:28:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685460521; cv=pass; d=google.com; s=arc-20160816; b=tRr7xoROVbtyaxircbbzEp5yzGX+sKdGL5t+Nyy8porlNtZ80lSRnfgdDq2EcGMVkB 85y5Q8vOFbtbbMXqo/MJFmMmy6t06kkRNj5n/YulD+c4A1wvMrn+/hFSsa1T93EKvQFW kzHzEpjYZxIPcCE2flUH0WaeyewbjFeQSQFGTOJfzvskrz8nNZeuqBwQEi5b8V8U6KGE fFKoixODy1Kd45d1EwukEqZMRgcH1cuGIRAJr77JsDSlE10ZKmtIksTwngMXxv600f8Q fe1kr9dvUbQHQ5WA78Zokqw46jq74o84KU4Uf78moIDonAGvdvhNmfyL8m7nVhIUj6tC w0pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6+hmlbP2DGELuiNJ60ADUpQe7VDNjwogAZfrkGjVpzA=; b=jatwKHrPqyPu6mVUgXOn7UhVhY7wMUFTGixsaQV+keb0tA8eUk4yPGj+QFbkz17zp6 a98q6WkfhRswRBThNfrWKOAdqPjkkSPHYPQKwF6ZEGN7dGH8JVifHTRN8x57TnBX5ahA gqUEEuBb0XJNYDe6grxJovdLwaCfTexZVPehUkBiyHuX0X25qL1lhP9lijptInd3K2Es yFW0Rh5qp/fJf7RPaQL4FRr38g1730TtFn1nhLrA0hf403t1Bvtg84EMPpbSmA/MuxCR 1agWd0l0QzZb7z1aeSLCEqXJJYVFxUaCtgAqeblnG/ElOrIZKrXD5YYgLg5onR/sTyvK OBcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=sOoPI4lb; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); 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=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr8-20020a17090b4b8800b0025069d02778si14077737pjb.28.2023.05.30.08.28.29; Tue, 30 May 2023 08:28:41 -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=@siemens.com header.s=selector2 header.b=sOoPI4lb; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); 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=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232390AbjE3PLN (ORCPT + 99 others); Tue, 30 May 2023 11:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjE3PLL (ORCPT ); Tue, 30 May 2023 11:11:11 -0400 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2058.outbound.protection.outlook.com [40.107.249.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEFF88F; Tue, 30 May 2023 08:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jTX0PHUZAHNJXLuJxgE5pi6svM989k6wNO9nre7dijsaMNQQUkkyxTk9foiQJQrRkzMMPGaJ2E4FNC1muVxwgVoKxKb8c6+RX2N+xwgc+/Z5YsxAePBtMK8ObHYfHKVOVWWI0cn1z7oSotDMuYVV5c0eB4UXPz7kohVA41Vc4dyXyvSMnOSWn2ZXCTBE7ymm+uuhwKZ7O4qOigF0G1ZEbsoPhxhDVlNUuKagzjNfYiKWtU0o9D1FNBcLSpLcimns59yMHfoQlEWVQDhiIs+SInSfRnWgkreTVObT3Zp9+k2M6lbnN/yEyRcf1pJIZOFA79qIuYsUt0C9BGc/G/PLZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6+hmlbP2DGELuiNJ60ADUpQe7VDNjwogAZfrkGjVpzA=; b=P9lj4iW6VZWeOOdjPpcVbg9se+mhr5aE9D7vB4vez75bO+Md5bA4af/ZAB29ZGbW3KAmW7FtGRtgMHgBAaRCMG7C69W2Qdi5gEyd9/GyHwSCOxV5fylVU+v4x00rGi+JvYcZNSO9eF1eHj+BVMgjwsieM2eFeBoLFEsmDVIXCQF9nSivZ1yjKpT3plM/7zOH73xrNQSIAJyeW5IxNc9yyt9ex6q5D6hOIm58EUQA4MXVIH5n35TlKkI/FkZywW37aQwDOgP6Lh40QPyjQqmzG56O1lw6PRPRasBRxEs1uTx/VKwqU1KhuGH9B1oPiaOZKrzO20jYuc5QEgYvDJ00IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6+hmlbP2DGELuiNJ60ADUpQe7VDNjwogAZfrkGjVpzA=; b=sOoPI4lbm3Ab7aQZ4OQSTUvv5EOISOzSTZoV1KjzgfDQUFA8OKxGgmqIq8XGK7SDgrpIE7QZgkpLrbjEIQjId/zMIOh8NDlA+SH1MFILn6DXX81OJMEp4HfQqJzitQI52hXwy4wtEPNEpmDrZadWP6xs1W4k6zHIKcN/fTa9azreS1E3nUbDW3fsrMHCV+kaaqkVdVrpxz/RWCEk6RKWd3uQx2HQYdyuhBV5EJHZ3Nx+4I29fQIArPtlXhD/3ESt6pErYLtMrmP5/vWwk1VrbF5s2t8+prTOAMVU2DCfpcUOnDKMFcam+IjRHG54ySFcMXItp76CAxKepHQneVbQ6g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:269::8) by VI1PR10MB3230.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:136::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.21; Tue, 30 May 2023 15:11:07 +0000 Received: from PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM ([fe80::a171:a3f2:99b7:5f29]) by PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM ([fe80::a171:a3f2:99b7:5f29%6]) with mapi id 15.20.6433.022; Tue, 30 May 2023 15:11:07 +0000 Date: Tue, 30 May 2023 17:11:00 +0200 From: Henning Schild To: Andy Shevchenko Cc: Pavel Machek , Lee Jones , Hans de Goede , Mark Gross , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH v4 1/4] leds: simatic-ipc-leds-gpio: add terminating entries to gpio tables Message-ID: <20230530171100.75e5b86c@md1za8fc.ad001.siemens.net> In-Reply-To: References: <20230524124628.32295-1-henning.schild@siemens.com> <20230524124628.32295-2-henning.schild@siemens.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0161.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::8) To PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:269::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5780:EE_|VI1PR10MB3230:EE_ X-MS-Office365-Filtering-Correlation-Id: 6171f370-f7c8-41f2-f84c-08db612017e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dbKYJujlQ9dR1b5wARMS4JwpU6JWpvIc78EHXIAjk0SI0Sa4jlgUlvPpDsoLuo6wAuYbftbXN9BNdytyzhNvM4NX2QmcDxM8UmiKhfgs+3+i3GzZIx5QcvkMA/EAg4dGqgAI7x3+/EWQ5nAHoUiDhNBlCCoWyEKb7PfEsCZ4xRvUcJgsIGIVuvT5EM+aBC+UePdZMZiLmXjnpGafmEhOerH7VRESj3DtQr6I2osUU9KthE3/iMafMxL972VmtifR5Ay/yJldZdQzgVKdA5Kw1brlqK7Fx0sBXxyILWDnICKFXHYs2DqNlDJXbeVrqazkKLrzf1oIceKecPTUkgSl07DZ1ZPQgQORy4d7+s5hcsXDtD4brYff852xxFryYFdwDq8AxajzGvkGkEodYeTrTampWKA4jVCyPnqnS0bDhZoYPYUdwNmEZGNUlm8mrKAbp6LuWvCCrxU01VcwlonBGOoMgHURU7GsmerU4oblFLPadVK0nLYslvzCK6pd0s9/fmRsphg3fUJEtU5qcAtz30CykDlGQZOe6QzElcu6tOd1TVqLjsvgjk2HF26QaCi2 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(366004)(396003)(39860400002)(136003)(376002)(451199021)(6506007)(9686003)(6512007)(186003)(2906002)(54906003)(478600001)(1076003)(44832011)(86362001)(38100700002)(8676002)(82960400001)(41300700001)(6486002)(8936002)(5660300002)(66556008)(66946007)(66476007)(316002)(6666004)(6916009)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TVg8pPzogruTFM14+q1G2KB96YBm2EBTJ3iYuFzyu7ENMN8B0EHRr+CQgiXX?= =?us-ascii?Q?7bc6Q8B4bnXWn8dwt4emVa0i38qLACbkkHOqdIKwO5W7Qb90ReLKnU/erbPx?= =?us-ascii?Q?brHHwR634s9ryqOD0g0B5m8hjEje5NMvJupX4+NUFTFjEFi7DML7sCabQ/f9?= =?us-ascii?Q?Dt/JtcV30c/uH9LAF3IbQGTbYodF0jfulWTwVDsTpDJy/9eKLDwN56MmGkAs?= =?us-ascii?Q?IGIh8Ugfi07+GbJUF+Ebj05UAvEPs9U2giIj0d9f0GeghvYGpbkhe4sJ1Qs6?= =?us-ascii?Q?XxmAwXYC51/Kwsy2RBU130Vv4ryMW56eJy66+FWVTttf/as/CzDb3+X8TjVf?= =?us-ascii?Q?sx1QT7bQ2e7p14QxoGSCHZ3U5rbliYCAoJ8iyasa3xfbi1+V6nH5Dv5dc30V?= =?us-ascii?Q?MOG4JtqoDO+gMwscvO2BJ4TGHumRyyaVVBwaojeJ7TVykSG8ABbCmCmUKu1+?= =?us-ascii?Q?AGS6wGaJP9zYeZQlCHp5e3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us-ascii?Q?7j8Sljw5/hfcu6bAhoqc68GhJIClcjjZjXJLzdd0fkFsnWiN+kBGYW1Pmtd+?= =?us-ascii?Q?4A81a3hHgPKDmmNZkuJgli/tI2TKrYYSmc3Io02FL/eDqr7PN7XPwtL4WRrH?= =?us-ascii?Q?bEtckxcfoJEPnUqr6g+NcnByBTEHmm9JPav8qAeKqOoaeGdMUdzwJZSSH90g?= =?us-ascii?Q?bDD3TGmrT3+szC6fQb/I6NqAMDtYPCr3L3fewMkn/AcQtW4mrEJ3qG1wYVBc?= =?us-ascii?Q?Uj9ojq5hL1jMbaEwgsc01Qa0ZtGu3d83IRmGyDT/DOevPUIxqytizKqu1YWc?= =?us-ascii?Q?qAEhCw=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6171f370-f7c8-41f2-f84c-08db612017e2 X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 15:11:07.2011 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WTgaFeyCBDACKQ7qT3kNPFjALl1GVH1PuNw+pM8piaOz0OKHIJsUaojoOsbsi1ejuW7cQ4AEXpFJ7CId8KCyTmZVLu47rPFxKVklKdhDE9c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3230 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Am Sat, 27 May 2023 11:54:08 +0300 schrieb Andy Shevchenko : > On Wed, May 24, 2023 at 02:46:25PM +0200, Henning Schild wrote: > > The entries do not seem to be stricly needed when the number of > > entries is given via the number of LEDs. But adding them is a > > safeguard should anyone ever iterate over the tables to their end, > > it also gets us in line with other drivers that register > > "leds-gpio" tables. > > Reported-by? > Reviewed-by: Andy Shevchenko I think we could do Reported-by: Andy Shevchenko on merge. But i would not want to send the whole series again for that one line. Thanks! Henning > > Signed-off-by: Henning Schild > > --- > > drivers/leds/simple/simatic-ipc-leds-gpio.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/leds/simple/simatic-ipc-leds-gpio.c > > b/drivers/leds/simple/simatic-ipc-leds-gpio.c index > > e8d329b5a68c..1a1cfdad6218 100644 --- > > a/drivers/leds/simple/simatic-ipc-leds-gpio.c +++ > > b/drivers/leds/simple/simatic-ipc-leds-gpio.c @@ -28,6 +28,7 @@ > > static struct gpiod_lookup_table simatic_ipc_led_gpio_table_127e = > > { GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 51, NULL, 5, > > GPIO_ACTIVE_LOW), GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 56, NULL, > > 6, GPIO_ACTIVE_LOW), GPIO_LOOKUP_IDX("apollolake-pinctrl.0", 59, > > NULL, 7, GPIO_ACTIVE_HIGH), > > + {} /* Terminating entry */ > > }, > > }; > > > > @@ -42,6 +43,7 @@ static struct gpiod_lookup_table > > simatic_ipc_led_gpio_table_227g = { > > GPIO_LOOKUP_IDX("gpio-f7188x-2", 5, NULL, 5, GPIO_ACTIVE_LOW), > > GPIO_LOOKUP_IDX("gpio-f7188x-3", 6, NULL, 6, GPIO_ACTIVE_HIGH), > > GPIO_LOOKUP_IDX("gpio-f7188x-3", 7, NULL, 7, GPIO_ACTIVE_HIGH), > > + {} /* Terminating entry */ > > } > > }; > > > > -- > > 2.39.3 > > >