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 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 ty

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 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 i

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 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 see any adva

[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 Acked-by: Hans Verkuil --- drivers/media/i2c/adv7180.c