From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Bill Pemberton <wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH 16/16] i2c: SMBus: remove __dev* attributes
Date: Wed, 28 Nov 2012 14:23:49 +0100 [thread overview]
Message-ID: <20121128142349.629db0c0@endymion.delvare> (raw)
In-Reply-To: <1354049993-12718-17-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
Hi Bill,
On Tue, 27 Nov 2012 15:59:53 -0500, Bill Pemberton wrote:
> CONFIG_HOTPLUG is going away as an option. As result the __dev*
> markings will be going away.
>
> Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
> and __devexit.
>
> Signed-off-by: Bill Pemberton <wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
> Cc: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
> ---
> drivers/i2c/busses/i2c-ali1535.c | 8 ++++----
> drivers/i2c/busses/i2c-ali15x3.c | 8 ++++----
> drivers/i2c/busses/i2c-amd756.c | 6 +++---
> drivers/i2c/busses/i2c-amd8111.c | 6 +++---
> drivers/i2c/busses/i2c-i801.c | 24 ++++++++++++------------
> drivers/i2c/busses/i2c-isch.c | 6 +++---
> drivers/i2c/busses/i2c-nforce2.c | 10 +++++-----
> drivers/i2c/busses/i2c-piix4.c | 20 ++++++++++----------
> drivers/i2c/busses/i2c-sis5595.c | 4 ++--
> drivers/i2c/busses/i2c-sis630.c | 8 ++++----
> drivers/i2c/busses/i2c-via.c | 6 +++---
> drivers/i2c/busses/i2c-viapro.c | 2 +-
> 12 files changed, 54 insertions(+), 54 deletions(-)
Looks mostly OK, just two suggestions:
> diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
> index 1e73638..6c5a732 100644
> --- a/drivers/i2c/busses/i2c-i801.c
> +++ b/drivers/i2c/busses/i2c-i801.c
> @@ -841,13 +841,13 @@ struct dmi_onboard_device_info {
> const char *i2c_type;
> };
>
> -static struct dmi_onboard_device_info __devinitdata dmi_devices[] = {
> +static struct dmi_onboard_device_info dmi_devices[] = {
> { "Syleus", DMI_DEV_TYPE_OTHER, 0x73, "fscsyl" },
> { "Hermes", DMI_DEV_TYPE_OTHER, 0x73, "fscher" },
> { "Hades", DMI_DEV_TYPE_OTHER, 0x73, "fschds" },
> };
If I remember correctly, the only reason why this wasn't declared const
was because this was not compatible with __devinitdata. Now that
__devinitdata is gone, the leading "static" should become "static
const". Same goes for the 4 other occurrences in this patch, and I
suppose, many other cases in other subsystems.
> diff --git a/drivers/i2c/busses/i2c-viapro.c b/drivers/i2c/busses/i2c-viapro.c
> index 271c9a2..3426196 100644
> --- a/drivers/i2c/busses/i2c-viapro.c
> +++ b/drivers/i2c/busses/i2c-viapro.c
> @@ -320,7 +320,7 @@ static struct i2c_adapter vt596_adapter = {
> .algo = &smbus_algorithm,
> };
>
> -static int __devinit vt596_probe(struct pci_dev *pdev,
> +static int vt596_probe(struct pci_dev *pdev,
> const struct pci_device_id *id)
> {
> unsigned char temp;
Now this would fit on a single line. There are many other occurrences
of this. I know this can't be easily automated, but it would be great
if your patches could put the code back on the previous line when this
is possible.
--
Jean Delvare
next prev parent reply other threads:[~2012-11-28 13:23 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 20:59 [PATCH 00/16] i2c: remove __dev* attributes for retirement of HOTPLUG Bill Pemberton
2012-11-27 20:59 ` [PATCH 05/16] i2c: i2c-cpm: remove __dev* attributes Bill Pemberton
[not found] ` <1354049993-12718-1-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-27 20:59 ` [PATCH 01/16] i2c/busses: " Bill Pemberton
2012-11-27 20:59 ` [PATCH 02/16] i2c: mux-gpio: " Bill Pemberton
[not found] ` <1354049993-12718-3-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-27 22:44 ` Peter Korsgaard
2012-11-27 20:59 ` [PATCH 03/16] i2c: pnx: " Bill Pemberton
2012-11-27 20:59 ` [PATCH 04/16] i2c: scx200_acb: " Bill Pemberton
2012-11-27 20:59 ` [PATCH 06/16] i2c: i2c-gpio: " Bill Pemberton
[not found] ` <1354049993-12718-7-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-27 22:22 ` Håvard Skinnemoen
2012-11-27 20:59 ` [PATCH 07/16] i2c: i2c-parport-light: " Bill Pemberton
[not found] ` <1354049993-12718-8-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-28 12:28 ` Jean Delvare
2012-11-27 20:59 ` [PATCH 08/16] i2c: ocores: " Bill Pemberton
[not found] ` <1354049993-12718-9-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-27 22:55 ` Peter Korsgaard
2012-11-27 20:59 ` [PATCH 09/16] i2c: omap: " Bill Pemberton
2012-11-27 20:59 ` [PATCH 10/16] i2c: pca: " Bill Pemberton
2012-11-27 20:59 ` [PATCH 11/16] i2c: puv3: " Bill Pemberton
[not found] ` <1354049993-12718-12-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-29 1:22 ` guanxuetao-TG0Ac1+ktVePQbnJrJN+5g
2012-11-27 20:59 ` [PATCH 12/16] i2c: i2c-pasemi: " Bill Pemberton
2012-11-27 20:59 ` [PATCH 13/16] i2c: sirf: " Bill Pemberton
[not found] ` <1354049993-12718-14-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-28 2:45 ` Barry Song
2012-11-27 20:59 ` [PATCH 14/16] i2c-ali1563: " Bill Pemberton
[not found] ` <1354049993-12718-15-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-28 12:31 ` Jean Delvare
[not found] ` <20121128133153.700e84a8-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-11-28 13:48 ` Bill Pemberton
2012-11-27 20:59 ` [PATCH 15/16] i2c-sis96x: " Bill Pemberton
[not found] ` <1354049993-12718-16-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-28 12:33 ` Jean Delvare
2012-11-27 20:59 ` [PATCH 16/16] i2c: SMBus: " Bill Pemberton
[not found] ` <1354049993-12718-17-git-send-email-wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org>
2012-11-28 13:23 ` Jean Delvare [this message]
[not found] ` <20121128142349.629db0c0-R0o5gVi9kd7kN2dkZ6Wm7A@public.gmane.org>
2012-11-28 13:54 ` Bill Pemberton
[not found] ` <20121128135448.5319580134-A/mCt7huS1Rvw44tLj6iNJvpjmsXDcsSh13vi7wywA4@public.gmane.org>
2012-11-28 14:07 ` Jean Delvare
2012-11-28 13:32 ` Jean Delvare
2012-11-28 10:47 ` [PATCH 00/16] i2c: remove __dev* attributes for retirement of HOTPLUG Wolfram Sang
[not found] ` <20121128104716.GC14238-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-11-28 13:51 ` [PATCH 00/16] i2c: remove __dev* attributes for retirement of Bill Pemberton
[not found] ` <20121128135146.74D0580134-A/mCt7huS1Rvw44tLj6iNJvpjmsXDcsSh13vi7wywA4@public.gmane.org>
2012-11-28 13:52 ` 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=20121128142349.629db0c0@endymion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=wfp5p-4Ng6DfrEGID2fBVCVOL8/A@public.gmane.org \
/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).