From: shc_work@mail.ru (Alexander Shiyan)
To: linux-arm-kernel@lists.infradead.org
Subject: Re[4]: [PATCH v3 1/5] rtc: mxc_rtc: Driver re work
Date: Sun, 30 Jun 2013 12:45:44 +0400 [thread overview]
Message-ID: <1372581944.405527352@f25.mail.ru> (raw)
In-Reply-To: <20943.61307.796422.302951@ipc1.ka-ro>
> Alexander Shiyan writes:
> > > On Sat, Jun 29, 2013 at 12:40:40PM +0400, Alexander Shiyan wrote:
> > > > This patch rework mxc_rtc driver.
> > > > Major changes have been made:
> > > > - Added second clock support (optional) which permit module functionality.
> > > > - Implemented support for periodic interrupts.
> > > > - Some code have been optimized.
> > > >
> > > > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
...
> > > > + pdata->rtc_ops.open = mxc_rtc_open;
> > > > + pdata->rtc_ops.release = mxc_rtc_release;
> > > > + pdata->rtc_ops.read_time = mxc_rtc_read_time;
> > > > + pdata->rtc_ops.set_mmss = mxc_rtc_set_mmss;
> > > > + pdata->rtc_ops.read_alarm = mxc_rtc_read_alarm;
> > > > + pdata->rtc_ops.set_alarm = mxc_rtc_set_alarm;
> > > > + pdata->rtc_ops.alarm_irq_enable = mxc_rtc_alarm_irq_enable;
> > >
> > > So struct rtc_class_ops is embedded into struct rtc_plat_data now. Why
> > > is this necessary?
> >
> > Just save BSS. Can be moved into cleanup part.
> >
> The purpose of platform_data is to convey platform specific
> information to drivers, not a general driver local storage.
> Thus platform_data should be treated read-only by drivers.
"pdata" here is not a platform_data.
This is a private driver struct. this was be renamed by me in v1, but I revert
these changes.
---
prev parent reply other threads:[~2013-06-30 8:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-29 8:40 [PATCH v3 1/5] rtc: mxc_rtc: Driver rework Alexander Shiyan
2013-06-29 8:40 ` [PATCH v3 2/5] rtc: mxc_rtc: Cleanup code Alexander Shiyan
2013-06-29 8:40 ` [PATCH v3 4/5] rtc: mxc_rtc: Add DT support Alexander Shiyan
2013-06-29 8:40 ` [PATCH v3 3/5] ARM: imx: Using proper clocks for RTC driver Alexander Shiyan
2013-06-29 8:40 ` [PATCH v3 5/5] ARM: imx: move i.MX1/21/27 RTC clk lookup into DT Alexander Shiyan
2013-06-29 12:14 ` [PATCH v3 1/5] rtc: mxc_rtc: Driver rework Sascha Hauer
2013-06-29 21:01 ` Re[2]: " Alexander Shiyan
2013-06-29 21:33 ` Re[3]: " Alexander Shiyan
2013-06-30 8:05 ` Sascha Hauer
2013-06-30 9:10 ` Re[2]: " Alexander Shiyan
2013-06-30 10:16 ` Sascha Hauer
2013-06-30 7:52 ` Sascha Hauer
2013-06-30 8:26 ` Re[2]: " Alexander Shiyan
2013-06-30 8:42 ` [PATCH v3 1/5] rtc: mxc_rtc: Driver re work Lothar Waßmann
2013-06-30 8:45 ` 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=1372581944.405527352@f25.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.