Re: [PATCH] RTC: Add platform data structure to Ricoh RS5C372 driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Mundt
Date: Tuesday, September 23, 2008 - 10:08 pm

On Wed, Sep 24, 2008 at 11:45:49AM +0900, Alexey Kopytko wrote:
[snip]


I don't think this is a meaningful abstraction. Pushing this sort of
knowledge in to the platform code is pretty ugly, especially when the
only distinction you need is whether to use the A set or the B set.

Given that, you could simply have a flags field in the platform data and
use one bit to test in the driver for using the B set of registers (A is
always the default otherwise).
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] RTC: Add platform data structure to Ricoh RS5C ..., Paul Mundt, (Tue Sep 23, 10:08 pm)