Commit b77e3e56 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: core: fix two container-of macros

Fix two greybus container-of macros that used the pointer name for the
member.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent d764212f
......@@ -48,7 +48,7 @@ struct gb_host_device {
/* Private data for the host driver */
unsigned long hd_priv[0] __aligned(sizeof(s64));
};
#define to_gb_host_device(d) container_of(d, struct gb_host_device, d)
#define to_gb_host_device(d) container_of(d, struct gb_host_device, dev)
struct gb_host_device *gb_hd_create(struct gb_hd_driver *driver,
struct device *parent,
......
......@@ -41,7 +41,7 @@ struct gb_svc {
char *input_phys;
struct gb_svc_watchdog *watchdog;
};
#define to_gb_svc(d) container_of(d, struct gb_svc, d)
#define to_gb_svc(d) container_of(d, struct gb_svc, dev)
struct gb_svc *gb_svc_create(struct gb_host_device *hd);
int gb_svc_add(struct gb_svc *svc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment