mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
greybus: endo: move endo id map declaration to endo.h
There is a sparse warning. The endo id map is also used in endo.c. Should define in endo.h Signed-off-by: Phong Tran <tranmanphong@gmail.com> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
928f2abd5f
commit
f2e2b06fef
2 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,6 @@
|
|||
|
||||
#include "greybus.h"
|
||||
|
||||
extern struct ida greybus_endo_id_map;
|
||||
|
||||
/* Allow greybus to be disabled at boot if needed */
|
||||
static bool nogreybus;
|
||||
#ifdef MODULE
|
||||
|
|
|
@ -46,6 +46,7 @@ struct gb_endo {
|
|||
};
|
||||
#define to_gb_endo(d) container_of(d, struct gb_endo, dev)
|
||||
|
||||
extern struct ida greybus_endo_id_map;
|
||||
|
||||
/* Greybus "private" definitions */
|
||||
struct greybus_host_device;
|
||||
|
|
Loading…
Reference in a new issue