]> git.baikalelectronics.ru Git - kernel.git/commit
component: track components via array rather than list
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 18 Apr 2014 22:05:53 +0000 (23:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 7 Dec 2015 00:02:05 +0000 (00:02 +0000)
commit40c103b9466002e1b40acd5fc53840e2852b7ae9
treef013e9daec3d283bbf34d34f1f9312e5531a7d71
parente8652abe8c83a159d54d1d37c4ec660e84eebac4
component: track components via array rather than list

Since we now have an array which defines each component, maintain the
components to be bound in the array rather than a separate list.  We
also need duplicate tracking so we can eliminate multiple bind calls
for the same component: we preserve the list-based component order in
that the first match which adds the component determines its position.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/base/component.c