Commit Graph
2 Commits
Author SHA1 Message Date
David Collins fcd82b397a bif: bif-core: use static inline for all exported BIF stub functions
Mark all stub functions in the BIF consumer.h header file with
'static inline' in order to avoid compilation errors in files
that include consumer.h when CONFIG_BIF=n.

Change-Id: I3a5c7dc58f8eed93b1f30d0e021b65ab200b4271
Signed-off-by: David Collins <collinsd@codeaurora.org>
2013-10-14 10:15:07 -07:00
David Collins ed93049884 bif: Add BIF core framework driver
Add a BIF framework which implements core features of the MIPI
(Mobile Industry Processor Interace) BIF (Battery Interface)
specification.  MIPI-BIF defines an interface which can be used
to communicate with smart battery packs.

BIF controller drivers register with the BIF framework and
implement hardware specific features.  BIF consumers can make use
of an extensive API to communicate with BIF slaves present on a
BIF bus.

Change-Id: Id640344aadf878a49e93b12b16a5ecb181dd5aeb
Signed-off-by: David Collins <collinsd@codeaurora.org>
2013-03-05 09:43:40 -08:00