[PATCH v16 5/8] regulator: p3h2x4x: Add driver for on-die regulators in NXP P3H2x4x i3c hub

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Aug 26 03:48:41 PDT 2026


Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Driver-specific header file is incorrectly placed in the global include/linux/mfd/ directory.
--

commit f0356d778985b362783f95ecd394c166098e5c31
Author: Aman Kumar Pandey <aman.kumarpandey at nxp.com>

regulator: p3h2x4x: Add driver for on-die regulators in NXP P3H2x4x i3c hub

This commit introduces a driver for the on-die regulators of the NXP P3H2x4x
i3c hub family. It registers the regulators via the MFD framework and exposes
them to the regulator subsystem.

> diff --git a/drivers/regulator/p3h2840_i3c_hub_regulator.c b/drivers/regulator/p3h2840_i3c_hub_regulator.c
> new file mode 100644
> --- /dev/null
> +++ b/drivers/regulator/p3h2840_i3c_hub_regulator.c
> @@ -0,0 +1,284 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright 2025-2026 NXP
> + * NXP P3H2X4X regulator driver file contain functions for enable/disable regulator
> + * and voltage set/get.
> + */
> +#include <linux/bitfield.h>
> +#include <linux/cleanup.h>
> +#include <linux/mfd/p3h2840.h>

[Severity: Low]
Does this driver-specific header need to be placed in the global
include/linux/mfd/ directory? 

According to MFD subsystem guidelines, driver-specific header files that are
only used by the parent and its immediate children should be kept local to
drivers/mfd/ rather than cluttering the global include space. The commit
message explicitly notes that this header is "used only by the parent and
its children".

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260826103819.1614843-1-lakshay.piplani@nxp.com?part=5



More information about the linux-i3c mailing list