Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp261103rwd; Tue, 16 May 2023 00:13:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vuKb0bIW8KCaK3rfKSx5Yi8n/tM8FLaTyHov4oU1ZLzxP7DmDxiIwMMbzTFfODhQUIYIO X-Received: by 2002:a05:6a00:218f:b0:64a:7723:fe04 with SMTP id h15-20020a056a00218f00b0064a7723fe04mr18410063pfi.4.1684221232545; Tue, 16 May 2023 00:13:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684221232; cv=pass; d=google.com; s=arc-20160816; b=Czt46x5+i2PDSAe4WrfGHLWVs2WiPaA9GCvPXLbjDJp94cJM6hNcypWywP78WeeZC8 +UTjN9kqn3QIhehmHsX3c69MrV4yGjtYkBkRRWscoB9sIh+tq6eHBBX68s/BxH3lNs87 LobqgeXZq9mX5tHfmDO32fHQYNFApp2udFresJShte3wxwCYkMe49WFgoOf0I+2E2iF2 e8/5EymFWLFdU6odmUNpgji9DerhzWast+vgcz8Dv4XC5tOPlDOo/d+H8f/Y6No1rUpS xwPGYUIHnW9FMV85cJBQvhCjX5SlNXw0U3dmP1HBkMmY0UoGMsktqH23jVXZWFJ2yDO4 BcNA== 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=+JBzsNr98FQHrkORfc9UT2IfoaBKokWJiPmEz1cRmhk=; b=m5YGtF1G3dVv6Wk1uS7tePuW9rmS1flgxWgl3X8A7fevonPxxaR/CSSX3Xhs0HfzKO Ehkvt57KnfygSX4D++n+bpG/Y7vuXKNtUiCoFJ7U5HRCB4KrZbAJKQEIH/doBNEurBD3 WbYgG7PV1HBpkJpxikbxjrApIgicUU1ffdYghuM2Snp8XHqa36zcUCzJF5zHUpvkiUlA hyTDaqoTS0qBhv3D43SNvr4lSidMF/R3r7B0lEtG7godOTg8Ad4jA+KEdwk57QULmN7l JzOhzs8anCdIn6DgLYfeFrGkL+McyHaFHe+dkFlnb71rpRspeP+Uipo3Yn6ouIGuqb3a 6xJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=YB4yZOqw; 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 q24-20020aa79618000000b00628217e3ea6si18449476pfg.316.2023.05.16.00.13.37; Tue, 16 May 2023 00:13:52 -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=YB4yZOqw; 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 S230341AbjEPHJQ (ORCPT + 99 others); Tue, 16 May 2023 03:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbjEPHJO (ORCPT ); Tue, 16 May 2023 03:09:14 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2042.outbound.protection.outlook.com [40.107.6.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4432B19A; Tue, 16 May 2023 00:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TLSCe2LEfXlCw8tQ9e2qG6EozU0f2ts8TgwEcXRSA8gn8uxSU9W/R9LPyCR9+L3pPG9fAtnJHNZO/GxC9up3KAgnZe5WRRVl7/x+X30z15fwHnLxh6/2y/Of17+rMe1FMY0PDBOIYQPFcv+uLzB3zSXzS+n93yoCGYB4oiLh8y7T/utoByIv+xZTeuW+bd7MOQFfMyOGnTE/kdo61+lZ1ZyUaqBz86UX3AH9udzS9jWlZWJ60sN/2f9p2iRHeffZKHmnAlvedVPnaT0iSc+tLv+LfGjSx7CS0plCk4a77VAgbQmEjzee2yMhuxDsxfZqFaD8gw7Um1hV8xiK5WCBcA== 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=+JBzsNr98FQHrkORfc9UT2IfoaBKokWJiPmEz1cRmhk=; b=G2VBG3FlkDhRqKSTyG/Jba30m2RUpKKlaOLLkamaohRem2/dK3F+P3FG0PgKH87KHPmZRuOXuG3ick2zRapJPRAtGV9vKNcC37jFjLue+Wqmd30q5hR1PS28DyhL8e3VJvaQ+qMVU9f+3FpE5t1h1TccJzfIhqDmiCO+n6aBtiSZIa2a/sPkqbGvqDhNpxdpDAEj1mYBWRXxxB63Qihoy3yC7c3c5CW2Xvz2NjFs4RVZmm1wbKy63R3duhEnCerZ+vx3tAfTwNagS6d49INCkaFBkwxKI97+f97xyDDbDwOoL5F1ElpRtknWiIdcMFOrabWV+Ss7bAUQjT2IHRm2oQ== 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=+JBzsNr98FQHrkORfc9UT2IfoaBKokWJiPmEz1cRmhk=; b=YB4yZOqwJyF2sSuEN05gOb1j2/vDj8htYJwWpDcBUC54xVBVOI2WVnFiDadW0stbYssvgD51jah/obwmSR+SMWRnHFpIccoJJ7CSGI8I2z/PN+7Q5XTkn1If/MM3y6XtOVI/tSLhVBMmLfY0I8YeAXWmQBmH2+x8inU8D/7WQrjIu+eYv9LHmYxxQ/9/9gT6CmhML9xCn/Ksu7N1dpsg5Ta9PcvTbo6Rc/B9XUKaS5f2AEAn9HiUW299s2uzsA0FFNIgwNz1lg513zdGFyLKxpqpUkauNtBbNhpFbbJlCXptlBAJK658ckEkW3WGpd0RFyVGu5YXSirtBClhNRsRUw== 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 AS2PR10MB7501.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:593::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.32; Tue, 16 May 2023 07:09:11 +0000 Received: from PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM ([fe80::aa98:fb34:754f:8958]) by PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM ([fe80::aa98:fb34:754f:8958%4]) with mapi id 15.20.6387.030; Tue, 16 May 2023 07:09:11 +0000 Date: Tue, 16 May 2023 09:09:06 +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 v3 2/3] leds: simatic-ipc-leds-gpio: split up into multiple drivers Message-ID: <20230516090906.0d7c6058@md1za8fc.ad001.siemens.net> In-Reply-To: References: <20230515150352.30925-1-henning.schild@siemens.com> <20230515150352.30925-3-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: FR0P281CA0181.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ab::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_|AS2PR10MB7501:EE_ X-MS-Office365-Filtering-Correlation-Id: 23e48f4d-bfed-4094-5f6d-08db55dc72a9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PfG+2NGD615/nZdQOzxw9pbaovmrfKbTlRp8dowk/lJxj5p32gRNnhGaXKvoIwddyuSyugUAyixg93rWvQlD2GghYwutb1fZXGY7yff8nLH8ebR2gO+BxwLKJ/e/OvwhlxRA2QgdQs4hYkULInnB5NxVoDjOJi58Zk4nASt8Ekgf9MnhXaq9F+C7+aG2X3s4So/KkFBSdFJ3Xr7O++4s6UNJ62ymIv6oWKC4Zv7zLasRGkJP9z2mqwSZ9UN9gTxaC2BAEjAj/fkphl7eZQ6lGU95poc+xLvI7Eq4wfSgU9NoNrEdlfqFymPQ6++8A99pVLJWDI9mpZ12cSn3bYEozjWZNVRJxs/fSyjsOiVRfgRlKKsggWFIG7bGsqzo0xXfVS+jr6Wyvq3RGAqEolAkIaH9qiuV5uLfAY7m68vEpAPfNItSIQbRP4ZYPjise894yvrAfih4rjizZlb/Mnggb9pK9pOpOWp0aaYgssZ09xB3yYg6TN7JBdfu0herDqS32je2T/Pmaywo5nR5FRURb9zUZBNWFjiitTaqPBWH5sDM6sNyOqIYPk+YnDsC67+O 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)(366004)(376002)(346002)(39860400002)(136003)(396003)(451199021)(54906003)(2906002)(4744005)(478600001)(41300700001)(86362001)(8936002)(8676002)(38100700002)(44832011)(82960400001)(4326008)(6916009)(5660300002)(66946007)(66556008)(66476007)(6506007)(6512007)(9686003)(83380400001)(1076003)(316002)(186003)(6666004)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?uIQ4RIv2DWB9Cr1ue03mbK5pALnOMu18ZA5J+pI0uX7TwOs62xWSXYXmFNH2?= =?us-ascii?Q?yuE5AN/2ckZp5xMzMDrW04LTo4D3xrn35mXBcS3/u8m9I32qGGxzT8gYE7N5?= =?us-ascii?Q?dschChvh3Bh6kh25OyVVToJvH6F4PtKsMl8PvpRQUV1N6Vj8E016CFQAJH+l?= =?us-ascii?Q?TI875MGCfROYJbwpkhi7jE9Cg7JJtiSlYkNkmRBBugckyWXC9e/jOH2xLm6J?= =?us-ascii?Q?csbvkTTh94yeL4R0PrUIIwAX4PQFQ0ZHTeYDtAZzr50L3opQo7k+GcIE6Vq9?= =?us-ascii?Q?/nFGBg/33ysfkcbQm5qzubEnA+KzSgl1v9PY7PPLKwNWSCnG3idxGrRLVb33?= =?us-ascii?Q?VqnVxm1pi6J0tSMsO2ay95CVASHiP7Ya5jgvGqiBD3iFV9h6clrNEqRNQc3U?= =?us-ascii?Q?5Vc/28zSvV+Yq30o/r6Yd9hKMMpt6fPBC9GFvUdTMsu7/mLe4duXvm9nBsYq?= =?us-ascii?Q?3hFVT5pLQTXT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LLjrEsyB?= =?us-ascii?Q?xsbJxXF2b+0F37ZjS6MpYSJLeBUQud6ViDoPKTH66jpo7j4TPCN5EoEx+S+U?= =?us-ascii?Q?K/GKocF9TKrgi6HKLmuNcUGPsjD0JqZ/YrdA6DlkU38bKAnt++DD0Fv2AEdx?= =?us-ascii?Q?SfUvpq4oy1sf2K5PrrXrnxrYxoXIMl3Qkg7YBvlgM+hEho/Q/SK2t5Hd+bGX?= =?us-ascii?Q?eNOK6fS27oSWEQ1nAnU0BN0rL8MdvJqXhQ6DWFSfMK9RxCfjMDAPyATSFut+?= =?us-ascii?Q?tz9YNFOp/TMpPR/63vQe34v0wXDGsRKy5SvX96lyfkAAjg4RKZVqQMrlVguL?= =?us-ascii?Q?6B7Abw=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23e48f4d-bfed-4094-5f6d-08db55dc72a9 X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5780.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 07:09:11.0706 (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: qihEVTTZDGf2Dv9sIRapX0ws84TBtcY4nzB8+QZ9istcyxif2w9hZxuyrMi/HmER6L6u560ywrcFY2jeXw7pLoclu+29spkMM1X/6KOSgv8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR10MB7501 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 Tue, 16 May 2023 00:41:30 +0300 schrieb Andy Shevchenko : > On Mon, May 15, 2023 at 05:03:51PM +0200, Henning Schild wrote: > > In order to clearly describe the dependencies between the GPIO > > controller drivers and the users the driver is split up into a core, > > two drivers and a common header. > > AFAIU the GPIO lookup tables need a terminator entry. They never had one in the first place and that worked, i did not add terminators here and that also works. My guess is that .num_leds = ARRAY_SIZE(simatic_ipc_gpio_leds) tells "leds-gpio" how many entries there are. (another array without a terminator) But i will add them in a v4 so things are explicit and aligned with other similar drivers. Henning