[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171201130137.vqzt5lecjecsd5ei@sirena.org.uk>
Date: Fri, 1 Dec 2017 13:01:37 +0000
From: Mark Brown <broonie@...nel.org>
To: Erick Chen <erick.chen@...eadtrum.com>
Cc: robh+dt@...nel.org, mark.rutland@....com, lgirdwood@...il.com,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
baolin.wang@...aro.org, baolin.wang@...eadtrum.com
Subject: Re: [PATCH 2/2] regulator: sc2731: Add regulator driver to support
Spreadtrum SC2731 PMIC
On Fri, Dec 01, 2017 at 04:58:16PM +0800, Erick Chen wrote:
> +static const struct of_device_id sc2731_regulator_of_match[] = {
> + {.compatible = "sprd,sc2731-regulator",},
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, sc2731_regulator_of_match);
This looks like a subdriver for one specific device that can't be reused
with anything else as it's specific to an individual device so I'd not
expect it to appear as a separate thing in DT - the way Linux splits
things up might not map well onto other OSs and may even change in
future versions of Linux (look at all the audio drivers with clock
controllers in them for example). I'd expect the MFD to just register
the subdevice without needing it to appear in the DT.
> +subsys_initcall(sc2731_regulator_init);
> +module_exit(sc2731_regulator_exit);
Why not module_platform_driver()? Deferred probe should sort out probe
order.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists