core.c (976e3645923bdd2fe7893aae33fd7a21098bfb28) core.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Greybus "Core"
4 *
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
7 */
8

--- 64 unchanged lines hidden (view full) ---

73
74 id = greybus_match_id(bundle, driver->id_table);
75 if (id)
76 return 1;
77 /* FIXME - Dynamic ids? */
78 return 0;
79}
80
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Greybus "Core"
4 *
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
7 */
8

--- 64 unchanged lines hidden (view full) ---

73
74 id = greybus_match_id(bundle, driver->id_table);
75 if (id)
76 return 1;
77 /* FIXME - Dynamic ids? */
78 return 0;
79}
80
81static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
81static int greybus_uevent(const struct device *dev, struct kobj_uevent_env *env)
82{
82{
83 struct gb_host_device *hd;
84 struct gb_module *module = NULL;
85 struct gb_interface *intf = NULL;
86 struct gb_control *control = NULL;
87 struct gb_bundle *bundle = NULL;
88 struct gb_svc *svc = NULL;
83 const struct gb_host_device *hd;
84 const struct gb_module *module = NULL;
85 const struct gb_interface *intf = NULL;
86 const struct gb_control *control = NULL;
87 const struct gb_bundle *bundle = NULL;
88 const struct gb_svc *svc = NULL;
89
90 if (is_gb_host_device(dev)) {
91 hd = to_gb_host_device(dev);
92 } else if (is_gb_module(dev)) {
93 module = to_gb_module(dev);
94 hd = module->hd;
95 } else if (is_gb_interface(dev)) {
96 intf = to_gb_interface(dev);

--- 253 unchanged lines hidden ---
89
90 if (is_gb_host_device(dev)) {
91 hd = to_gb_host_device(dev);
92 } else if (is_gb_module(dev)) {
93 module = to_gb_module(dev);
94 hd = module->hd;
95 } else if (is_gb_interface(dev)) {
96 intf = to_gb_interface(dev);

--- 253 unchanged lines hidden ---