Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1241136
| From | Felipe Balbi <balbi@TI.COM> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 09/11] clocksource: add TI 32.768 Hz counter driver |
| Date | 2015-10-07 05:10 +0200 |
| Message-ID | <qgNh7-HZ-1@gated-at.bofh.it> (permalink) |
| References | <qgDUt-3Yw-3@gated-at.bofh.it> <qgDUx-3Yw-75@gated-at.bofh.it> <qgJQe-44b-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi,
Daniel Lezcano <daniel.lezcano@linaro.org> writes:
> On 10/06/2015 07:02 PM, Felipe Balbi wrote:
>> Introduce a new clocksource driver for Texas
>> Instruments 32.768 Hz device which is available
>> on most OMAP-like devices.
>>
>> Signed-off-by: Felipe Balbi <balbi@ti.com>
>
> Hi Felipe,
>
> With the couple of nits below fixed, you can my:
>
> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
>
> [ ... ]
>
>> +#define OMAP2_32KSYNCNT_REV_OFF 0x0
>> +#define OMAP2_32KSYNCNT_REV_SCHEME (0x3 << 30)
>> +#define OMAP2_32KSYNCNT_CR_OFF_LOW 0x10
>> +#define OMAP2_32KSYNCNT_CR_OFF_HIGH 0x30
>> +
>> +struct ti_32k {
>> + void __iomem *base;
>> + void __iomem *counter;
>> + struct clocksource cs;
>> +};
>> +#define to_ti_32k(cs) (container_of((cs), struct ti_32k, cs))
>
> Usually a static inline is used instead of a macro for that.
not so true and also completely unnecessary, considering container_of()
already type safety ;-)
Try this:
$ git grep -e "#define.*container_of" | wc -l
no strong feelings though. I tend to prefer a macro to wrap
container_of() but won't go into an argument
--
balbi
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 00/11] arm: omap: counter32k rework Felipe Balbi <balbi@ti.com> - 2015-10-06 19:10 +0200
[PATCH 07/11] arm: omap2: timer: remove omap4_local_timer_init Felipe Balbi <balbi@ti.com> - 2015-10-06 19:10 +0200
[PATCH 04/11] arm: omap2: timer: provide generic sync32k_timer_init function Felipe Balbi <balbi@ti.com> - 2015-10-06 19:10 +0200
Re: [PATCH 04/11] arm: omap2: timer: provide generic sync32k_timer_init function Suman Anna <s-anna@ti.com> - 2015-10-06 20:40 +0200
Re: [PATCH 04/11] arm: omap2: timer: provide generic sync32k_timer_init function Felipe Balbi <balbi@ti.com> - 2015-10-06 21:20 +0200
[PATCH 02/11] arm: omap2: timer: add a gptimer argument to sync32k_timer_init() Felipe Balbi <balbi@ti.com> - 2015-10-06 19:10 +0200
[PATCH 06/11] arm: omap2: timer: always call clocksource_of_init() when DT Felipe Balbi <balbi@ti.com> - 2015-10-06 19:10 +0200
[PATCH 09/11] clocksource: add TI 32.768 Hz counter driver Felipe Balbi <balbi@ti.com> - 2015-10-06 19:10 +0200
Re: [PATCH 09/11] clocksource: add TI 32.768 Hz counter driver Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-10-07 01:30 +0200
Re: [PATCH 09/11] clocksource: add TI 32.768 Hz counter driver Felipe Balbi <balbi@TI.COM> - 2015-10-07 05:10 +0200
csiph-web