All of lore.kernel.org
 help / color / mirror / Atom feed
* Should we make mark_param_change buffer implementation internal?
@ 2011-12-14 13:21 Lars-Peter Clausen
  2011-12-14 13:58 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Lars-Peter Clausen @ 2011-12-14 13:21 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org

Hi,

Right now we have a mark_param_change callback in the buffer access
functions struct, which should be called whenever the parameters (length,
bytes per datum) of the buffer change. Each buffer implementation calls
their own mark_param_change callback in their set_length and
set_bytes_per_datum callbacks. Additionally mark_param_change gets called
when the user changes the buffer length. So in this case it will get called
twice.

So I'm wondering if we should make it completely buffer implementation
internal and not export it in the buffer access functions struct, since the
buffer implementation will probably know best anyway if one of it's
parameters has changed.

- Lars

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-14 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-14 13:21 Should we make mark_param_change buffer implementation internal? Lars-Peter Clausen
2011-12-14 13:58 ` Jonathan Cameron

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.