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:
Phong Tran 2015-06-09 20:28:17 +07:00 committed by Greg Kroah-Hartman
parent 928f2abd5f
commit f2e2b06fef
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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;