Re: [PATCH v2 03/15] [media] adv7180: Use inline function instead of macro

2015-02-02 Thread Lars-Peter Clausen
On 02/02/2015 02:36 PM, Mauro Carvalho Chehab wrote: Em Fri, 23 Jan 2015 16:52:22 +0100 Lars-Peter Clausen l...@metafoo.de escreveu: Use a inline function instead of a macro for the container_of helper for getting the driver's state struct from a control. A inline function has the advantage

Re: [PATCH v2 03/15] [media] adv7180: Use inline function instead of macro

2015-02-02 Thread Mauro Carvalho Chehab
Em Fri, 23 Jan 2015 16:52:22 +0100 Lars-Peter Clausen l...@metafoo.de escreveu: Use a inline function instead of a macro for the container_of helper for getting the driver's state struct from a control. A inline function has the advantage that it is more typesafe and nicer in general. I don't

Re: [PATCH v2 03/15] [media] adv7180: Use inline function instead of macro

2015-02-02 Thread Hans Verkuil
On 02/02/2015 02:36 PM, Mauro Carvalho Chehab wrote: Em Fri, 23 Jan 2015 16:52:22 +0100 Lars-Peter Clausen l...@metafoo.de escreveu: Use a inline function instead of a macro for the container_of helper for getting the driver's state struct from a control. A inline function has the advantage

[PATCH v2 03/15] [media] adv7180: Use inline function instead of macro

2015-01-23 Thread Lars-Peter Clausen
Use a inline function instead of a macro for the container_of helper for getting the driver's state struct from a control. A inline function has the advantage that it is more typesafe and nicer in general. Signed-off-by: Lars-Peter Clausen l...@metafoo.de Acked-by: Hans Verkuil