From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Daniel Jeong <gshark.jeong@gmail.com>
Cc: Liam Gridwood <lrg@ti.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Daniel Jeong <daniel.jeong@ti.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] regulator: new driver for LP8755
Date: Mon, 03 Dec 2012 14:25:14 +0800 [thread overview]
Message-ID: <50BC45CA.20504@cn.fujitsu.com> (raw)
In-Reply-To: <1354509864-30001-2-git-send-email-gshark.jeong@gmail.com>
<...>
> +
> +static int __devinit lp8755_regulator_init(struct lp8755_chip *pchip)
CONFIG_HOTPLUG is going away; it's already defined to always be 'Y'.
So, please don't use __devinit anymore.
refer to : http://marc.info/?l=linux-i2c&m=135341812915168&w=2
> +{
> + int ret, icnt, buck_num;
> + struct lp8755_platform_data *pdata = pchip->pdata;
> +
> + struct regulator_config rconfig = { };
> +
> + rconfig.regmap = pchip->regmap;
> + rconfig.dev = pchip->dev;
> + rconfig.driver_data = pchip;
<..>
> +}
> +
> +static int __devinit lp8755_int_config(struct lp8755_chip *pchip)
Ditto.
> +{
> + int ret;
> + unsigned int regval;
> +
> + if (pchip->irq == 0) {
> + dev_warn(pchip->dev, "not use interrupt : %s\n", __func__);
> + return 0;
> + }
> +
> + ret = lp8755_read(pchip, 0x0F, ®val);
> +}
> +
> +static int __devinit lp8755_probe(struct i2c_client *client,
Ditto.
> + const struct i2c_device_id *id)
> +{
> + int ret, icnt;
> + struct lp8755_chip *pchip;
> + struct lp8755_platform_data *pdata = client->dev.platform_data;
> +
> + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
> + dev_err(&client->dev, "i2c functionality check fail.\n");
> + return -EOPNOTSUPP;
> + }
> +
> + if (pdata == NULL) {
> + dev_err(&client->dev, "platform data is NULL.\n");
> + return -ENOMEM;
> +
> + return ret;
> +}
> +
> +static int __devexit lp8755_remove(struct i2c_client *client)
Ditto.
> +{
> + int icnt;
> + struct lp8755_chip *pchip = i2c_get_clientdata(client);
> +
> + for (icnt = 0; icnt < mphase_buck[pchip->mphase].nreg; icnt++)
<..>
> +static struct i2c_driver lp8755_i2c_driver = {
> + .driver = {
> + .name = LP8755_NAME,
> + },
> + .probe = lp8755_probe,
> + .remove = __devexit_p(lp8755_remove),
Ditto. remove __devexit_p.
Thanks,
Wanlong Gao
next prev parent reply other threads:[~2012-12-03 6:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 4:44 [PATCH 0/1] regulator: new driver for LP8755 Daniel Jeong
2012-12-03 4:44 ` [PATCH 1/1] " Daniel Jeong
2012-12-03 6:25 ` Wanlong Gao [this message]
2012-12-03 6:36 ` Mark Brown
[not found] ` <CAPqQCJW6TLhxRkOdw6JVe1qkepDDKdt+wagAgd5VCCsE3y6Qog@mail.gmail.com>
2012-12-03 7:27 ` Mark Brown
2012-12-03 6:11 ` [PATCH 0/1] " Mark Brown
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=50BC45CA.20504@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=daniel.jeong@ti.com \
--cc=gshark.jeong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.