From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/5] drivers: bus: imx-weim: Remove private driver data
Date: Sun, 23 Jun 2013 21:23:03 +0200 [thread overview]
Message-ID: <20130623192303.GO32299@pengutronix.de> (raw)
In-Reply-To: <1371973698-16150-1-git-send-email-shc_work@mail.ru>
On Sun, Jun 23, 2013 at 11:48:14AM +0400, Alexander Shiyan wrote:
> Driver uses only probe function so no reason to keep variables
> in private driver data.
>
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
> drivers/bus/imx-weim.c | 41 ++++++++++++++---------------------------
> 1 file changed, 14 insertions(+), 27 deletions(-)
>
> diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
> index 349f14e..0c0e6fe 100644
> --- a/drivers/bus/imx-weim.c
> +++ b/drivers/bus/imx-weim.c
> @@ -12,11 +12,6 @@
> #include <linux/io.h>
> #include <linux/of_device.h>
>
> -struct imx_weim {
> - void __iomem *base;
> - struct clk *clk;
> -};
I don't know how others see it, but I would keep the private data now
that it's there already. We don't know what it's good for in the future
and it doesn't hurt.
This is no strong opinion though since it always can be added back when
it's really needed.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2013-06-23 19:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-23 7:48 [PATCH v3 1/5] drivers: bus: imx-weim: Remove private driver data Alexander Shiyan
2013-06-23 7:48 ` [PATCH v3 2/5] drivers: bus: imx-weim: Simplify error path Alexander Shiyan
2013-06-23 7:48 ` [PATCH v3 3/5] drivers: bus: imx-weim: use module_platform_driver_probe() Alexander Shiyan
2013-06-23 7:48 ` [PATCH v3 4/5] drivers: bus: imx-weim: Add missing platform_friver.owne field Alexander Shiyan
2013-06-23 7:48 ` [PATCH v3 5/5] drivers: bus: imx-weim: Add support for i.MX1/21/25/27/31/35/50/51/53 Alexander Shiyan
2013-06-24 11:35 ` Shawn Guo
2013-06-24 11:49 ` Re[2]: " Alexander Shiyan
2013-06-24 12:38 ` Shawn Guo
2013-06-23 19:23 ` Sascha Hauer [this message]
2013-06-23 21:50 ` [PATCH v3 1/5] drivers: bus: imx-weim: Remove private driver data Fabio Estevam
2013-06-24 7:00 ` Re[2]: " Alexander Shiyan
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=20130623192303.GO32299@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.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).