From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: Wolfram Sang <wsa@the-dreams.de>,
Rob Herring <robh+dt@kernel.org>,
linux-i2c <linux-i2c@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk
Date: Wed, 28 Jun 2017 12:28:01 +0300 [thread overview]
Message-ID: <CAHp75Ve-JFBMofDwoKKENL-AggXqMpKd7CbRZwJuPKWML13apA@mail.gmail.com> (raw)
In-Reply-To: <20170626004434.2757-6-chris.packham@alliedtelesis.co.nz>
On Mon, Jun 26, 2017 at 3:44 AM, Chris Packham
<chris.packham@alliedtelesis.co.nz> wrote:
On the first glance I have thought this is _the_ only patch that
doesn't make my eyes hurt.
Not a chance! Where is the commit message?
Code below though looks fine.
> @@ -107,8 +107,8 @@ static int i2c_pca_pf_waitforcompletion(void *pd)
> static void i2c_pca_pf_dummyreset(void *pd)
> {
> struct i2c_pca_pf_data *i2c = pd;
> - printk(KERN_WARNING "%s: No reset-pin found. Chip may get stuck!\n",
> - i2c->adap.name);
> +
> + dev_warn(&i2c->adap.dev, "No reset-pin found. Chip may get stuck!\n");
> }
>
> static void i2c_pca_pf_resetchip(void *pd)
> @@ -236,7 +236,7 @@ static int i2c_pca_pf_probe(struct platform_device *pdev)
>
> platform_set_drvdata(pdev, i2c);
>
> - printk(KERN_INFO "%s registered.\n", i2c->adap.name);
> + dev_info(&pdev->dev, "registered.\n");
>
> return 0;
> }
> --
> 2.13.0
>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2017-06-28 9:28 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-20 1:18 [PATCH v2 0/5] i2c: pca-platform: updates Chris Packham
2017-06-20 1:18 ` [PATCH v2 1/5] dt-bindings: add bindings for i2c-pca-platform Chris Packham
2017-06-22 8:22 ` Wolfram Sang
2017-06-22 8:22 ` Wolfram Sang
2017-06-22 21:20 ` Chris Packham
2017-06-23 8:17 ` Wolfram Sang
2017-06-23 8:17 ` Wolfram Sang
2017-06-23 21:41 ` Rob Herring
2017-06-20 1:18 ` [PATCH v2 2/5] i2c: pca-platform: add devicetree awareness Chris Packham
2017-06-20 1:18 ` [PATCH v2 3/5] i2c: pca-platform: use gpio_is_valid Chris Packham
2017-06-20 1:18 ` Chris Packham
2017-06-20 1:18 ` [PATCH v2 4/5] i2c: pca-platform: use device managed allocations Chris Packham
2017-06-20 1:18 ` Chris Packham
2017-06-20 1:18 ` [PATCH v2 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk Chris Packham
2017-06-20 1:18 ` Chris Packham
2017-06-26 0:44 ` [PATCH v3 0/5] i2c: pca-platform: updates Chris Packham
2017-06-26 0:44 ` [PATCH v3 1/5] dt-bindings: add bindings for i2c-pca-platform Chris Packham
2017-06-26 14:06 ` Rob Herring
2017-06-26 14:06 ` Rob Herring
2017-06-27 19:53 ` Wolfram Sang
2017-06-26 0:44 ` [PATCH v3 2/5] i2c: pca-platform: switch to struct gpio_desc Chris Packham
2017-06-27 19:53 ` Wolfram Sang
2017-06-28 9:25 ` Andy Shevchenko
2017-06-28 21:25 ` Chris Packham
2017-06-28 22:18 ` Wolfram Sang
2017-06-26 0:44 ` [PATCH v3 3/5] i2c: pca-platform: add devicetree awareness Chris Packham
2017-06-27 19:55 ` Wolfram Sang
2017-06-28 9:20 ` Andy Shevchenko
2017-06-28 9:42 ` Wolfram Sang
2017-06-28 21:15 ` Chris Packham
2017-06-26 0:44 ` [PATCH v3 4/5] i2c: pca-platform: use device managed allocations Chris Packham
2017-06-27 19:55 ` Wolfram Sang
2017-06-28 9:23 ` Andy Shevchenko
2017-06-28 9:38 ` Wolfram Sang
2017-06-28 10:54 ` Andy Shevchenko
2017-06-28 21:03 ` Chris Packham
2017-06-26 0:44 ` [PATCH v3 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk Chris Packham
2017-06-27 19:55 ` Wolfram Sang
2017-06-28 9:28 ` Andy Shevchenko [this message]
2017-06-28 9:37 ` Wolfram Sang
2017-06-28 10:57 ` Andy Shevchenko
2017-06-28 12:01 ` Wolfram Sang
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=CAHp75Ve-JFBMofDwoKKENL-AggXqMpKd7CbRZwJuPKWML13apA@mail.gmail.com \
--to=andy.shevchenko@gmail.com \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=wsa@the-dreams.de \
/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.