Re: [PATCH RFC v2 08/16] media: convert links from array to list

2015-08-11 Thread Mauro Carvalho Chehab
Em Tue, 11 Aug 2015 12:49:40 +0200 Hans Verkuil escreveu: > On 08/07/15 16:20, Mauro Carvalho Chehab wrote: > > Using memory realloc to increase the size of an array > > is complex and makes harder to remove links. Also, by > > embedding the link inside an array at the entity makes harder > > to

Re: [PATCH RFC v2 08/16] media: convert links from array to list

2015-08-11 Thread Hans Verkuil
On 08/07/15 16:20, Mauro Carvalho Chehab wrote: > Using memory realloc to increase the size of an array > is complex and makes harder to remove links. Also, by > embedding the link inside an array at the entity makes harder > to change the code to add interfaces, as interfaces will > also need to u

[PATCH RFC v2 08/16] media: convert links from array to list

2015-08-07 Thread Mauro Carvalho Chehab
Using memory realloc to increase the size of an array is complex and makes harder to remove links. Also, by embedding the link inside an array at the entity makes harder to change the code to add interfaces, as interfaces will also need to use links. So, convert the links from arrays to lists. Si