devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Eric Jeong <eric.jeong.opensource@diasemi.com>
Cc: LINUX-KERNEL <linux-kernel@vger.kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Alexandre Courbot <gnurou@gmail.com>,
	DEVICETREE <devicetree@vger.kernel.org>,
	LINUX-GPIO <linux-gpio@vger.kernel.org>,
	Lee Jones <lee.jones@linaro.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Rob Herring <robh+dt@kernel.org>,
	Support Opensource <support.opensource@diasemi.com>
Subject: Re: [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for MFD support
Date: Thu, 27 Oct 2016 12:03:37 +0100	[thread overview]
Message-ID: <20161027110337.GJ25322@sirena.org.uk> (raw)
In-Reply-To: <711afefe3e65c166111473024bf9b54f3d4cc8b6.1477530195.git.eric.jeong@diasemi.com>

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

On Thu, Oct 27, 2016 at 10:03:14AM +0900, Eric Jeong wrote:

>  config REGULATOR_PV88080
> -	tristate "Powerventure Semiconductor PV88080 regulator"
> -	depends on I2C
> -	select REGMAP_I2C
> +	bool "Powerventure Semiconductor PV88080 regulator"
> +	depends on MFD_PV88080

Forcing the driver to be built in looks like a regression, why would we
want to do that?

> +	irq = platform_get_irq_byname(pdev, "regulator-irq");
> +	if (irq < 0) {
> +		dev_err(&pdev->dev, "Failed to get IRQ.\n");
> +		return irq;
>  	}

What's the _byname() adding here given that the name is so generic?  It
feels like if the name ever becomes important then this particular name
is going to be a problem.

> -module_i2c_driver(pv88080_regulator_driver);
> +static int __init pv88080_regulator_init(void)
> +{
> +	return platform_driver_register(&pv88080_regulator_driver);
> +}
> +subsys_initcall(pv88080_regulator_init);

Why are you converting this to subsys_initcall()?  This looks like
another regression.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2016-10-27 11:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-27  1:03 [PATCH V2 0/4] pv88080: PV88080 driver submission Eric Jeong
2016-10-27  1:03 ` [PATCH V2 1/4] Documentation: pv88080: Move binding document Eric Jeong
     [not found]   ` <4e0bd042e35f13c06511ca9b3f790b5ceaf34451.1477530195.git.eric.jeong-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
2016-10-31  4:44     ` Rob Herring
2016-11-08  6:21       ` Eric Hyeung Dong Jeong
2016-10-27  1:03 ` [PATCH V2 3/4] regulator: pv88080: Update Regulator driver for MFD support Eric Jeong
2016-10-27 11:03   ` Mark Brown [this message]
     [not found]     ` <20161027110337.GJ25322-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-11-08  5:59       ` Eric Hyeung Dong Jeong
2016-11-08 16:37         ` Mark Brown
2016-10-27  1:03 ` [PATCH V2 2/4] mfd: pv88080: MFD core support Eric Jeong
     [not found]   ` <6dcaf788e4ebffd5c753e5fc5ae67668f74f7c32.1477530195.git.eric.jeong-WBD+wuPFNBhBDgjK7y7TUQ@public.gmane.org>
2016-10-27 16:52     ` kbuild test robot
2016-10-27 20:11     ` Linus Walleij
2016-11-08  6:08       ` Eric Hyeung Dong Jeong
2016-10-28 12:18   ` Linus Walleij
2016-11-08  6:18     ` Eric Hyeung Dong Jeong
2016-10-27  1:03 ` [PATCH V2 4/4] gpio: pv88080: Add GPIO function support Eric Jeong
2016-10-28 12:10   ` Linus Walleij
     [not found]     ` <CACRpkdYW_LnT9zLQp=r8xE1o=_hfwGEhOu_w2bp+hRZNN29WLA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-08  6:15       ` Eric Hyeung Dong Jeong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161027110337.GJ25322@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=eric.jeong.opensource@diasemi.com \
    --cc=gnurou@gmail.com \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=support.opensource@diasemi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).