From nobody Fri Dec 19 02:00:54 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F4081C83F15 for ; Mon, 28 Aug 2023 17:25:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232086AbjH1RYp (ORCPT ); Mon, 28 Aug 2023 13:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231728AbjH1RY3 (ORCPT ); Mon, 28 Aug 2023 13:24:29 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14B9D103 for ; Mon, 28 Aug 2023 10:24:26 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.02,208,1688396400"; d="scan'208";a="177943381" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 29 Aug 2023 02:24:26 +0900 Received: from localhost.localdomain (unknown [10.226.92.234]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 34B01402D0BB; Tue, 29 Aug 2023 02:24:24 +0900 (JST) From: Biju Das To: Liam Girdwood , Mark Brown Cc: Biju Das , linux-kernel@vger.kernel.org, Andy Shevchenko Subject: [PATCH v2 2/2] regulator: pv880x0: Drop CONFIG_OF ifdeffery Date: Mon, 28 Aug 2023 18:24:17 +0100 Message-Id: <20230828172417.113631-3-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230828172417.113631-1-biju.das.jz@bp.renesas.com> References: <20230828172417.113631-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Get rid of ugly CONFIG_OF ifdeffery by adding mod_devicetable.h include. Suggested-by: Andy Shevchenko Signed-off-by: Biju Das --- v2: * New patch. --- drivers/regulator/pv88080-regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/pv88080-regulator.c b/drivers/regulator/pv88= 080-regulator.c index 4009239b6784..2404df78d639 100644 --- a/drivers/regulator/pv88080-regulator.c +++ b/drivers/regulator/pv88080-regulator.c @@ -5,6 +5,7 @@ =20 #include #include +#include #include #include #include @@ -513,7 +514,6 @@ static int pv88080_i2c_probe(struct i2c_client *i2c) return 0; } =20 -#ifdef CONFIG_OF static const struct of_device_id pv88080_dt_ids[] =3D { { .compatible =3D "pvs,pv88080", .data =3D &pv88080_aa_regs }, { .compatible =3D "pvs,pv88080-aa", .data =3D &pv88080_aa_regs }, @@ -521,7 +521,6 @@ static const struct of_device_id pv88080_dt_ids[] =3D { {} }; MODULE_DEVICE_TABLE(of, pv88080_dt_ids); -#endif =20 static const struct i2c_device_id pv88080_i2c_id[] =3D { { "pv88080", (kernel_ulong_t)&pv88080_aa_regs }, @@ -535,7 +534,7 @@ static struct i2c_driver pv88080_regulator_driver =3D { .driver =3D { .name =3D "pv88080", .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, - .of_match_table =3D of_match_ptr(pv88080_dt_ids), + .of_match_table =3D pv88080_dt_ids, }, .probe =3D pv88080_i2c_probe, .id_table =3D pv88080_i2c_id, --=20 2.25.1