From: shc_work@mail.ru (Alexander Shiyan)
To: linux-arm-kernel@lists.infradead.org
Subject: Re[2]: [PATCH v3 1/5] drivers: bus: imx-weim: Remove private driver data
Date: Mon, 24 Jun 2013 11:00:46 +0400 [thread overview]
Message-ID: <1372057246.21852425@f349.mail.ru> (raw)
In-Reply-To: <20130623192303.GO32299@pengutronix.de>
> 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.
A possible case where private data can be used if we alter this driver to a real bus-driver.
In the current state, the data is not used.
Indeed, the code can be returned later, if it will needed.
Thanks.
---
prev parent reply other threads:[~2013-06-24 7:00 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 ` [PATCH v3 1/5] drivers: bus: imx-weim: Remove private driver data Sascha Hauer
2013-06-23 21:50 ` Fabio Estevam
2013-06-24 7:00 ` Alexander Shiyan [this message]
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=1372057246.21852425@f349.mail.ru \
--to=shc_work@mail.ru \
--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 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.