Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1966519iog; Sun, 19 Jun 2022 03:48:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uloeQnKmRVzsFeuNl/5GH1hsiIoxdT6DnxucDfIl9vdysazMGhOM0KlIaj5nbE4NJzyZnI X-Received: by 2002:a05:6402:e88:b0:434:d7de:8d0b with SMTP id h8-20020a0564020e8800b00434d7de8d0bmr22954501eda.149.1655635699085; Sun, 19 Jun 2022 03:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655635699; cv=none; d=google.com; s=arc-20160816; b=v/FlqKNFc4Kzbvx/omIMvgOOuqJsrWTUAWU3qiVT9K+AzQwx04WaOhJzVuBFJNG38W g99j9fcUfDm5whDWtkL4HvmehjS54enJ7c4xB03RkY7ilyneQfkz3CXiuYvOgaShx8xn IqVCki4QeZHo33sQJ5o9jQXh2YxKyqG4chpcJDsS4HpGiXyLuoAG3NgBmLh3YdwjhDh7 lIkYk81i4/GPTWfSBceGSQNumbTPkce1FWAmL/dOVmTw/EdsiGI/8drz9k8rnOx2J30w dieoSqgGAl3QrA//wpgPxhB47yaPvS3OrqfUZswpqoW4xqP+hzTo0DLZ3rDuewBUIy4i 0xIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yxOIwZjmxFnjMXJ6Xp1+MvDIzBj+ym+fo6gciVI2pfs=; b=oEs6NddLY4Moh1HFk1iCYqibBaDYhAIoanOHRSXs1NU27zKdnjZd9ffbVd+Y7E0iq1 OkC5vKb6A81PAIfi3s0j6V7JZuJs+zmCIFeZqokH040u8qu+Tq00FkL6aZ9whdXcfzBe KdMmj7c9gfYpA4TnSlKKubJtPYz0HSWEBKnWfJh7MArJvfZVgdF3GFWe7iqUiEtw/5tv o5mYKaQp45QIz8kCPzGzBghAS1XSvEbhpKeIEh4zRg3VSk86Ov8o1pNPbW91A4hQ69YS eTmxj3yWxZIowzxZY5EnYxL20VYFYW4+xz59FxZ7WRN4Dgxl5rKZ9noEhHCC7gmsYZZX z5DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=erxRoeDe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc20-20020a1709071c1400b007121e14ce82si11133567ejc.286.2022.06.19.03.47.52; Sun, 19 Jun 2022 03:48:19 -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=@gmail.com header.s=20210112 header.b=erxRoeDe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235089AbiFSKoz (ORCPT + 99 others); Sun, 19 Jun 2022 06:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbiFSKoy (ORCPT ); Sun, 19 Jun 2022 06:44:54 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F112614; Sun, 19 Jun 2022 03:44:53 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id ej4so7505323edb.7; Sun, 19 Jun 2022 03:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yxOIwZjmxFnjMXJ6Xp1+MvDIzBj+ym+fo6gciVI2pfs=; b=erxRoeDeeSAHC7idu736MyEPQuGc5jmV4U1+5N3dAyB/Dl1ew9cIgM9IKFGMi/79J8 zIdqn6oRCY0NvJH7Cm/T7TVHTiyZIeq6jMZ7HHmXrbiU/bD244DgcqOFQ7PdCsMcKcp9 JrI6J6+jH2IiwMDWxNKTZGlWvdIvQOjWs1A7arLZYc66nwF093xRdkT9DuiOnnDqBvah +1hHLH6RSwEdUeOBI5i0cMSUnm5DpZyfcgsCoyAd5b68DY/tO7bIFLoD9n4FLY4Y6Yfv esN7+5TGs01Pcnc27tdEiE9xSxwTG4BIQy7hw2dKznlvL4r3NZ92yvJdyhKh4kaMdk+j 8nQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yxOIwZjmxFnjMXJ6Xp1+MvDIzBj+ym+fo6gciVI2pfs=; b=ppogYeHJxlaer9oGeCo7jt1zEpQOIe3+RmUgbyOPQpgxpXLYzrIGa1LXfVFtlTzus0 N9vvXb0cmnAw4RQSgGF+CwbxHNG2s6COfo3Tmcg5XT4n+nTihwFghRxUAsKFpOhGGTRq mJinwO5eY7+HPHic9wljfJjDbEubgzWTxViAB6BLCbnsje4qxds/yBJPmsK4/OvVTsR8 Lh6zCcwaqWUnOZLdf9mnKdlubsHxmY3VU6w8G0Bkg/PI9vl8LfrdlPwK+Wca5fGwjTiL qs5l7oUQtqfHvMk+87Y98oQQbMmtYwpXdoThqAxRlI0yzN0aAUfEBrs5Op6zMbN4sSKj ha5w== X-Gm-Message-State: AJIora+jQPiJwajqhpu/44sIDlfpGXMhl5DHFwoPFMua/Ql0OIgPPA7S G/dFtMmB8+zp9bdi5F4t7S8jTqNLuTiw1WGbT7M= X-Received: by 2002:a05:6402:249e:b0:42d:bb88:865b with SMTP id q30-20020a056402249e00b0042dbb88865bmr22547322eda.141.1655635491659; Sun, 19 Jun 2022 03:44:51 -0700 (PDT) MIME-Version: 1.0 References: <20220618214009.2178567-1-aidanmacdonald.0x0@gmail.com> <20220618214009.2178567-9-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20220618214009.2178567-9-aidanmacdonald.0x0@gmail.com> From: Andy Shevchenko Date: Sun, 19 Jun 2022 12:44:14 +0200 Message-ID: Subject: Re: [PATCH v3 08/16] mfd: axp20x: Add support for AXP192 To: Aidan MacDonald Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jonathan Cameron , Lee Jones , Sebastian Reichel , Mark Brown , Greg Kroah-Hartman , Liam Girdwood , Lars-Peter Clausen , "Rafael J. Wysocki" , quic_gurus@quicinc.com, Sebastian Reichel , Michael Walle , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , linux-iio , Linux PM Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sat, Jun 18, 2022 at 11:40 PM Aidan MacDonald wrote: > > The AXP192 PMIC is similar to the AXP202/AXP209, but with different > regulators, additional GPIOs, and a different IRQ register layout. ... > +static int axp192_get_irq_reg(unsigned int base_reg, int i) > +{ > + /* linear mapping for IRQ1 to IRQ4 */ > + if (i < 4) > + return base_reg + i; > + > + /* handle IRQ5 separately */ > + if (base_reg == AXP192_IRQ1_EN) > + return AXP192_IRQ5_EN; > + else Redundant 'else'. > + return AXP192_IRQ5_STATE; > +} ... > +enum { > + AXP192_DCDC1 = 0, > + AXP192_DCDC2, > + AXP192_DCDC3, > + AXP192_LDO1, > + AXP192_LDO2, > + AXP192_LDO3, > + AXP192_LDO_IO0, > + AXP192_REG_ID_MAX, Comma is not needed for a terminator. > +}; -- With Best Regards, Andy Shevchenko