linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [power supply]:missing definition without config
@ 2019-11-15  6:06 fuyao
  0 siblings, 0 replies; only message in thread
From: fuyao @ 2019-11-15  6:06 UTC (permalink / raw)
  To: linux-kernel, linux-pm; +Cc: 麦键樟, 李静psw

linux-pm:
hi, walk around the power_supply.h file. 
call power_supply_get_by_name without the CONFIG_POWER_SUPPLY, cause
error.
if we should use:

#ifdef CONFIG_POWER_SUPPLY
extern extern struct power_supply *power_supply_get_by_name(const char *name);
#else
static inline struct power_supply *
power_supply_get_by_name(const char *name)
{return NULL;}
#endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-15  6:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-15  6:06 [power supply]:missing definition without config fuyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).