Re: [PATCH v10 01/18] counter: Introduce the Generic Counter interface

2019-04-08 Thread William Breathitt Gray
On Mon, Apr 08, 2019 at 11:55:15PM +0200, Pavel Machek wrote: > Hi! > > > +const char *const counter_count_direction_str[2] = { > > + [COUNTER_COUNT_DIRECTION_FORWARD] = "forward", > > + [COUNTER_COUNT_DIRECTION_BACKWARD] = "backward" > > +}; > > +EXPORT_SYMBOL_GPL(counter_count_direction_str)

Re: [PATCH v10 01/18] counter: Introduce the Generic Counter interface

2019-04-08 Thread Pavel Machek
Hi! > +const char *const counter_count_direction_str[2] = { > + [COUNTER_COUNT_DIRECTION_FORWARD] = "forward", > + [COUNTER_COUNT_DIRECTION_BACKWARD] = "backward" > +}; > +EXPORT_SYMBOL_GPL(counter_count_direction_str); > + > +const char *const counter_count_mode_str[4] = { > + [COUNTE

[PATCH v10 01/18] counter: Introduce the Generic Counter interface

2019-04-01 Thread William Breathitt Gray
This patch introduces the Generic Counter interface for supporting counter devices. In the context of the Generic Counter interface, a counter is defined as a device that reports one or more "counts" based on the state changes of one or more "signals" as evaluated by a defined "count function." D