Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5083445rwl; Mon, 3 Apr 2023 14:11:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bkqMmGlHKdomTsH4YY4kw4Gj2VqxMsCD8yEUUmpvuDR+VzHw2Uuh4fttVzCm/JFoIrIilY X-Received: by 2002:a17:906:cb8a:b0:92d:9767:8e0a with SMTP id mf10-20020a170906cb8a00b0092d97678e0amr63218ejb.13.1680556274732; Mon, 03 Apr 2023 14:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680556274; cv=none; d=google.com; s=arc-20160816; b=iN6xZLLl53X7Hc2Ze0AhwhoZXNlPk5WhY2eOfb/enCSOxaLdZqeh4rP8pcCDAzqtUN K6pQ7cp6bKgkP2ICpFyVrkhbAXym6poYRWv7ruQWNRIEz7z0af/XfyeSA+yLP0TKE96u Hjvc7n0VX1wtXEuDH2VJR448Z4Lk2zfnC+b+4ZwAk36TBgFevCvwLvFbtmQHbojz0rIh DeR8sdM451io+ZjXZ0FdY86xu8EvX+Obh4tzQQd9brUM23WdRyss04ueyMZwi752BuYD /aMJCYcU16/1JQ8/yhgO15ytjYfpmL18/OxMZygky2Rg5nOb2ztSis8Ig9yZZrgSsqop XkfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Xf/21L66T4Te5DprFuYRX/YDNaagYPnJ5vYl9sjCCBQ=; b=WwidMpZGNdKaDuKxt2f96RjnB8vLv/fEz1Zs8SLAkd1YqRdr3SfM/IEI1FTdtfQFDk XLUBtHUhpmyOjwGKXoXnIalzQ1PzXlS8KSXEGEhVJRWYA2mca+xES6K6YardGKM5DnmM zx5EAQF5YjrTtDCPhGg/BTBoD2boWNmiThWK/17728lI+ZESSQ8Yfr48Jxm6Xe/XtY5o V0VkR0KqGyfSbLFA5cTJHvXxlno5lbXjA25AK/6OFZN74TwNzRbFsa4iMTerR/6AZgLH xuLO0yD03f31PBOcMIRLxzN5CGeXVWV9P4zHW9GBuBcR/G+P3rLYidTKavZuV27VrIvi 3/CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GAOAo9qX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy12-20020a1709069f0c00b00948c33042fcsi1671538ejc.998.2023.04.03.14.10.50; Mon, 03 Apr 2023 14:11:14 -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=@kernel.org header.s=k20201202 header.b=GAOAo9qX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbjDCVJC (ORCPT + 99 others); Mon, 3 Apr 2023 17:09:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232874AbjDCVI7 (ORCPT ); Mon, 3 Apr 2023 17:08:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E6B44B7; Mon, 3 Apr 2023 14:08:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 85E0A62B58; Mon, 3 Apr 2023 21:08:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B567C433EF; Mon, 3 Apr 2023 21:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680556084; bh=PVBPRpr58MiOy6wGa6wE7NRJu02Si3vHn7TkitFaKmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GAOAo9qXJ3pkmaaM0Y+ukqG15b716d9Lh7iEAUbxl6ajlESrxH+lHJ8EgUk85lhOo osGNYa4toQlDOYpP1C1ULlAHvKEgrtCOFETFyBSGszHqshLk7lP2wjWM6QHleNy7fW wCrihhl6FudfKk3jYJlSG8orIVIT1QdmWQBwdeSoCizDZhBqIrSwwABXr9e4IhWcTJ Pm4EXWgFqZLnW0DEhxPJsywhDtFa371tJNeLXgGKL+5GKRaZ4eOX69g+HUXiEMdh2S /Ff7JmKgkZDoHzfuPvT0T7YO/G4lZBP59rrhI8/jjI4Rp0Xepg3VFOjLBceGFXTq2q +isiBVm0KBjwQ== Date: Mon, 3 Apr 2023 22:07:59 +0100 From: Mark Brown To: William Breathitt Gray Cc: Linus Walleij , Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Andy Shevchenko , techsupport@winsystems.com, pdemetrotion@winsystems.com, quarium@gmail.com, jhentges@accesio.com, jay.dolan@accesio.com Subject: Re: [PATCH v5 1/3] regmap: Pass irq_drv_data as a parameter for set_type_config() Message-ID: References: <5ba9d4c58a4cef138201334ea48e8bc8297a9a1c.1679845842.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LgISFP/7WOX9dQTd" Content-Disposition: inline In-Reply-To: <5ba9d4c58a4cef138201334ea48e8bc8297a9a1c.1679845842.git.william.gray@linaro.org> X-Cookie: Membership dues are not refundable. X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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 --LgISFP/7WOX9dQTd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 26, 2023 at 12:25:57PM -0400, William Breathitt Gray wrote: > Changes in v5: > - Wrap lines to 100 characters rather than 80 It's good to keep things under 80 where we can. > int (*set_type_config)(unsigned int **buf, unsigned int type, > - const struct regmap_irq *irq_data, int idx); > + const struct regmap_irq *irq_data, int idx, void *irq_drv_data); > unsigned int (*get_irq_reg)(struct regmap_irq_chip_data *data, > unsigned int base, int index); > void *irq_drv_data; There's no benefit from overflowing here and... > @@ -1660,7 +1660,8 @@ struct regmap_irq_chip { > unsigned int regmap_irq_get_irq_reg_linear(struct regmap_irq_chip_data *data, > unsigned int base, int index); > int regmap_irq_set_type_config_simple(unsigned int **buf, unsigned int type, > - const struct regmap_irq *irq_data, int idx); > + const struct regmap_irq *irq_data, int idx, > + void *irq_drv_data); ...it's not even consistent. --LgISFP/7WOX9dQTd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQrQC4ACgkQJNaLcl1U h9DV/Qf+PRCsw/4s4r8lTZpU3nIiqV1fietBklJFobjST5n8EYp9hxeTLmF/r4x1 ZbZvAzsJYQu8LuChYTC2lel4jhFFhvlmOcDZcQryNrjvG9y8GKtbaSwWQgo906Px GpzazDmchrlrtIfCKgnt3jdcaHkcD3LlxFRAIKXA/XloHjMySTl59F1Zi2ABTGzK i+eI0XLLyshbrcYD85c+FhBAq1nj0W1O28TA7z7aVvxQL+Z//Vf4Xk4Oe9jkVVGY jHyv5vQ7RhH/IIcu9BBMlmOHHFGFT6serZnJ8bgvnpCesEI4zYHIo+Y5n8OMmfzv zJ+X1mDLdB9JulOuDdh4OxEnWy14MA== =dRZY -----END PGP SIGNATURE----- --LgISFP/7WOX9dQTd--