* 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
* Re: Should we make mark_param_change buffer implementation internal?
2011-12-14 13:21 Should we make mark_param_change buffer implementation internal? Lars-Peter Clausen
@ 2011-12-14 13:58 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2011-12-14 13:58 UTC (permalink / raw)
To: Lars-Peter Clausen, Jonathan Cameron; +Cc: linux-iio@vger.kernel.org
Lars-Peter Clausen <lars@metafoo.de> wrote:
>Hi,
>
>Right now we have a =
mark_param_change callback in the buffer access
>functions struct, which sh=
ould be called whenever the parameters
>(length,
>bytes per datum) of the b=
uffer change. Each buffer implementation calls
>their own mark_param_change=
callback in their set_length and
>set_bytes_per_datum callbacks. Additiona=
lly 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 sho=
uld 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.
Makes s=
ense.
>
>- Lars
>--
>To unsubscribe from this list: send the line "unsubsc=
ribe linux-iio" in
>the body of a message to majordomo@vger.kernel.org
>Mor=
e majordomo info at http://vger.kernel.org/majordomo-info.html
--
Sent f=
rom my Android phone
with K-9 Mail. Please excuse my brevity.
^ 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.